Include header file being tested immediately after config.h.
[pspp] / tests / test-base64.c
index 48683259f1a0a45139b52c7b885420f4effc04e7..2a2a4f522f1efa507104515056f1abd28b9ca873 100644 (file)
 
 #include <config.h>
 
+#include "base64.h"
+
 #include <stddef.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include <string.h>
 #include <stdint.h>
 
-#include "base64.h"
-
-#define ASSERT(expr)                                                   \
-  do                                                                   \
-    {                                                                  \
-      if (!(expr))                                                     \
-       {                                                               \
-         fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
-         fflush (stderr);                                              \
-         abort ();                                                     \
-       }                                                               \
-    }                                                                  \
+#define ASSERT(expr)                                                    \
+  do                                                                    \
+    {                                                                   \
+      if (!(expr))                                                      \
+        {                                                               \
+          fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
+          fflush (stderr);                                              \
+          abort ();                                                     \
+        }                                                               \
+    }                                                                   \
   while (0)
 
 int