diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-11-27 12:02:45 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-02 07:46:25 +0100 |
commit | 8f6b7abd1aed966f205cc26e09ef38f9b0d40744 (patch) | |
tree | ce1bbb3e882e050a865755bf159331b8b0ea7ba6 /testsuites/psxtests/psxhdrs/stdlib | |
parent | ada/sp19: Add m4 generated sptest.adb (diff) | |
download | rtems-8f6b7abd1aed966f205cc26e09ef38f9b0d40744.tar.bz2 |
Move feature macro before "config.h" include
This allows to use header includes in "config.h" to reduce the build
configuration checks.
Update #3818.
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdlib')
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/getsubopt.c | 5 | ||||
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/grantpt.c | 5 | ||||
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/posix_openpt.c | 5 | ||||
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/ptsname.c | 5 | ||||
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/setkey.c | 5 | ||||
-rwxr-xr-x | testsuites/psxtests/psxhdrs/stdlib/unlockpt.c | 5 |
6 files changed, 18 insertions, 12 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdlib/getsubopt.c b/testsuites/psxtests/psxhdrs/stdlib/getsubopt.c index 3d6c09fd0e..172c50533e 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/getsubopt.c +++ b/testsuites/psxtests/psxhdrs/stdlib/getsubopt.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE 500 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE 500 #include <stdlib.h> int test( void ); @@ -47,4 +48,4 @@ int test( void ) char *valuep; return_value = getsubopt(&optionp, tokens, &valuep); return return_value; -}
\ No newline at end of file +} diff --git a/testsuites/psxtests/psxhdrs/stdlib/grantpt.c b/testsuites/psxtests/psxhdrs/stdlib/grantpt.c index 01c4a195c4..2ba0ad7787 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/grantpt.c +++ b/testsuites/psxtests/psxhdrs/stdlib/grantpt.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE 500 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE 500 #include <stdlib.h> int test( void ); @@ -46,4 +47,4 @@ int test( void ) return_value = grantpt(fildes); return return_value; -}
\ No newline at end of file +} diff --git a/testsuites/psxtests/psxhdrs/stdlib/posix_openpt.c b/testsuites/psxtests/psxhdrs/stdlib/posix_openpt.c index acdcc7f056..83201aa7a1 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/posix_openpt.c +++ b/testsuites/psxtests/psxhdrs/stdlib/posix_openpt.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE 600 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE 600 #include <stdlib.h> int test( void ); @@ -45,4 +46,4 @@ int test( void ) return_value = posix_openpt(1); return (return_value != -1); -}
\ No newline at end of file +} diff --git a/testsuites/psxtests/psxhdrs/stdlib/ptsname.c b/testsuites/psxtests/psxhdrs/stdlib/ptsname.c index cefdae0fe6..e94ce64f0d 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/ptsname.c +++ b/testsuites/psxtests/psxhdrs/stdlib/ptsname.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE 500 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE 500 #include <stdlib.h> int test( void ); @@ -45,4 +46,4 @@ int test( void ) return_value = (char *)ptsname(1); return (return_value != NULL); -}
\ No newline at end of file +} diff --git a/testsuites/psxtests/psxhdrs/stdlib/setkey.c b/testsuites/psxtests/psxhdrs/stdlib/setkey.c index f7fce847e6..f7142a0544 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/setkey.c +++ b/testsuites/psxtests/psxhdrs/stdlib/setkey.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE #include <stdlib.h> int test( void ); @@ -45,4 +46,4 @@ int main( void ) setkey(array); return 1; -}
\ No newline at end of file +} diff --git a/testsuites/psxtests/psxhdrs/stdlib/unlockpt.c b/testsuites/psxtests/psxhdrs/stdlib/unlockpt.c index c2cf2a7c7d..f60f659773 100755 --- a/testsuites/psxtests/psxhdrs/stdlib/unlockpt.c +++ b/testsuites/psxtests/psxhdrs/stdlib/unlockpt.c @@ -30,11 +30,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#define _XOPEN_SOURCE 500 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#define _XOPEN_SOURCE 500 #include <stdlib.h> int test( void ); @@ -46,4 +47,4 @@ int test( void ) return_value = unlockpt(fd); return (return_value != -1); -}
\ No newline at end of file +} |