]> git.draconx.ca Git - liblbx.git/commitdiff
Use AC_HEADER_ASSERT to allow users to disable assertions.
authorNick Bowler <draconx@gmail.com>
Thu, 27 Dec 2007 19:18:20 +0000 (14:18 -0500)
committerNick Bowler <draconx@gmail.com>
Thu, 27 Dec 2007 19:18:20 +0000 (14:18 -0500)
configure.ac
src/byteorder.h
src/lbx.c

index 5883fd91d7e2d790697e82e9b318f8a181daf140..8458e71ee5a900dfb3054ca8fc05406d4c4ad7bc 100644 (file)
@@ -6,6 +6,7 @@ AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_PROG_CC_C99
+AC_HEADER_ASSERT
 AC_C_BIGENDIAN
 
 dnl Dirty hack to disable useless C++/Fortran checks
index 5eb4daf51ddfc32f2728816c4acd1d6fb60cb389..ea6c7594fe52877f45cd9cbe007be6ae015688bf 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef BYTEORDER_H_
 #define BYTEORDER_H_
 
-#include <stdint.h>
-
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
 #endif
 
+#include <stdint.h>
+
 static inline uint16_t _flip16(uint16_t val)
 {
        uint16_t hostval;
index 8ddcf1860ec51b6665767cb0d9bfc6738a900a2a..253da5e870485bab33249f28bd872bdad2146703 100644 (file)
--- a/src/lbx.c
+++ b/src/lbx.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#      include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>