Changeset ab936440 in mainline for uspace/lib/c/include/string.h


Ignore:
Timestamp:
2019-02-12T20:42:42Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/string.h

    r7f7817a9 rab936440  
    3333 */
    3434
    35 #ifndef LIBC_STRING_H_
    36 #define LIBC_STRING_H_
     35#ifndef _LIBC_STRING_H_
     36#define _LIBC_STRING_H_
    3737
    38 #if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H)
     38#if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H) && \
     39    !defined(_LIBC_SOURCE)
    3940#error Please use str.h and mem.h instead
    4041#endif
     
    6364extern size_t strlen(const char *);
    6465
     66#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_LIBC_SOURCE)
     67extern size_t strnlen(const char *, size_t);
     68extern char *strdup(const char *);
     69extern char *strndup(const char *, size_t);
     70#endif
     71
    6572#endif
    6673
Note: See TracChangeset for help on using the changeset viewer.