include: Protect config.h inclusion
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Aug 2015 17:32:28 +0000 (19:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 4 Aug 2015 17:32:28 +0000 (19:32 +0200)
Thanks to Gregory Pakosz.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
include/cmocka_private.h

index c67f8db..d20d841 100644 (file)
@@ -17,7 +17,9 @@
 #ifndef CMOCKA_PRIVATE_H_
 #define CMOCKA_PRIVATE_H_
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 
 #include <stdint.h>