diff options
author | mistachkin <mistachkin@noemail.net> | 2014-09-20 00:02:23 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2014-09-20 00:02:23 +0000 |
commit | 33ac4c8bf5de82ab0e496b1da86fc1f1d1ba8f3f (patch) | |
tree | 2fe530643b2fb1040f25092030a68f24dddc6ee6 /src | |
parent | e7a3466458a175a88fa82c64c7a432825622c1d8 (diff) | |
download | sqlite-33ac4c8bf5de82ab0e496b1da86fc1f1d1ba8f3f.tar.gz sqlite-33ac4c8bf5de82ab0e496b1da86fc1f1d1ba8f3f.zip |
Revise macro usage in 'sqliteInt.h'.
FossilOrigin-Name: 35db3e2f350ca2bc6bb9e1a647aec7f93bfb7065
Diffstat (limited to 'src')
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/sqliteInt.h | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/printf.c b/src/printf.c index 03e39085b..9173cf733 100644 --- a/src/printf.c +++ b/src/printf.c @@ -21,7 +21,7 @@ ** the glibc version so the glibc version is definitely preferred. */ #if !defined(HAVE_STRCHRNUL) -# if defined(__linux__) && defined(_GNU_SOURCE) +# if defined(_GNU_SOURCE) # define HAVE_STRCHRNUL 1 # else # define HAVE_STRCHRNUL 0 diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 92efd9c08..75cfeefa0 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -47,6 +47,15 @@ # define _LARGEFILE_SOURCE 1 #endif +/* Needed for various definitions... */ +#if defined(__GNUC__) && !defined(_GNU_SOURCE) +# define _GNU_SOURCE +#endif + +#if defined(__OpenBSD__) && !defined(_BSD_SOURCE) +# define _BSD_SOURCE +#endif + /* ** For MinGW, check to see if we can include the header file containing its ** version information, among other things. Normally, this internal MinGW @@ -104,15 +113,6 @@ #pragma warn -spa /* Suspicious pointer arithmetic */ #endif -/* Needed for various definitions... */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif - -#if defined(__OpenBSD__) && !defined(_BSD_SOURCE) -# define _BSD_SOURCE -#endif - /* ** Include standard header files as necessary */ |