summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-27 12:02:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-02 07:46:25 +0100
commit8f6b7abd1aed966f205cc26e09ef38f9b0d40744 (patch)
treece1bbb3e882e050a865755bf159331b8b0ea7ba6 /testsuites/psxtests/psxhdrs/stdio
parentada/sp19: Add m4 generated sptest.adb (diff)
downloadrtems-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/stdio')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/getdelim.c4
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/getline.c3
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/renameat.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/getdelim.c b/testsuites/psxtests/psxhdrs/stdio/getdelim.c
index c4368f947e..e1b91492f6 100644
--- a/testsuites/psxtests/psxhdrs/stdio/getdelim.c
+++ b/testsuites/psxtests/psxhdrs/stdio/getdelim.c
@@ -29,11 +29,13 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+
+#define _POSIX_C_SOURCE 200809L
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
int test( void );
diff --git a/testsuites/psxtests/psxhdrs/stdio/getline.c b/testsuites/psxtests/psxhdrs/stdio/getline.c
index 9427d258e9..bbbc389a46 100644
--- a/testsuites/psxtests/psxhdrs/stdio/getline.c
+++ b/testsuites/psxtests/psxhdrs/stdio/getline.c
@@ -30,11 +30,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#define _POSIX_C_SOURCE 200809L
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
int test( void );
diff --git a/testsuites/psxtests/psxhdrs/stdio/renameat.c b/testsuites/psxtests/psxhdrs/stdio/renameat.c
index 8de1381984..ef62a54580 100644
--- a/testsuites/psxtests/psxhdrs/stdio/renameat.c
+++ b/testsuites/psxtests/psxhdrs/stdio/renameat.c
@@ -30,11 +30,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#define _POSIX_C_SOURCE 200809L
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
int test( void );