Skip to content

Commit

Permalink
wchar.h & string.h: use _GNU_SOURCE instead of __USE_GNU.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Jun 7, 2014
1 parent a3b7960 commit 2f32fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions headers/posix/string.h
Expand Up @@ -22,7 +22,7 @@ extern void *memccpy(void *dest, const void *source, int stopByte, size_t lengt
extern void *memmove(void *dest, const void *source, size_t length);
extern void *memset(void *dest, int value, size_t length);

#ifdef __USE_GNU
#ifdef _GNU_SOURCE
extern void *memrchr(const void *source, int value, size_t length);
#endif

Expand All @@ -40,7 +40,7 @@ extern char *strchr(const char *string, int character);
extern char *strrchr(const char *string, int character);
extern char *strstr(const char *string, const char *searchString);

#ifdef __USE_GNU
#ifdef _GNU_SOURCE
extern char *strchrnul(const char *string, int character);
#endif

Expand Down
4 changes: 2 additions & 2 deletions headers/posix/wchar.h
Expand Up @@ -94,7 +94,7 @@ extern size_t wcrtomb(char *dest, wchar_t wc, mbstate_t *mbState);
extern int wcscasecmp(const wchar_t *wcs1, const wchar_t *wcs2);
extern wchar_t *wcscat(wchar_t *dest, const wchar_t *src);
extern wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
#ifdef __USE_GNU
#ifdef _GNU_SOURCE
extern wchar_t *wcschrnul(const wchar_t *wcs, wchar_t wc);
#endif
extern int wcscmp(const wchar_t *wcs1, const wchar_t *wcs2);
Expand Down Expand Up @@ -141,7 +141,7 @@ extern wchar_t *wmemchr(const wchar_t *wcs, wchar_t wc, size_t n);
extern int wmemcmp(const wchar_t *wcs1, const wchar_t *wcs2, size_t n);
extern wchar_t *wmemcpy(wchar_t *dest, const wchar_t *src, size_t n);
extern wchar_t *wmemmove(wchar_t *dest, const wchar_t *src, size_t n);
#ifdef __USE_GNU
#ifdef _GNU_SOURCE
extern wchar_t *wmempcpy(wchar_t *dest, const wchar_t *src, size_t n);
#endif
extern wchar_t *wmemset(wchar_t *dest, wchar_t wc, size_t n);
Expand Down

0 comments on commit 2f32fd1

Please sign in to comment.