tests/amdgpu: Include config.h first
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 17 Aug 2015 09:41:11 +0000 (18:41 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 17 Aug 2015 09:41:11 +0000 (18:41 +0900)
Fixes build failure on 32-bit because _FILE_OFFSET_BITS wasn't defined to
64.

Reviewed-by: Christian König <christian.koenig@amd.com>
tests/amdgpu/amdgpu_test.c
tests/amdgpu/basic_tests.c
tests/amdgpu/bo_tests.c
tests/amdgpu/cs_tests.c
tests/amdgpu/vce_tests.c

index ed27e24..6568990 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
index 44c6e4d..7874039 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index e4040d6..993895d 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 
 #include "CUnit/Basic.h"
index faceb83..416f36b 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  *
 */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 
 #include "CUnit/Basic.h"
index b549392..0542654 100644 (file)
  *
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdio.h>
 #include <inttypes.h>