summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-08-04 19:32:28 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-08-04 19:32:28 +0200
commitab3ec0da8c55a68bcd8b7dda9c0a475e93cb4ffb (patch)
tree931b7188acc4f3e9f9afe5b331b01722977d5631
parent56f0bfec968af94c45d3f9bcf391dde27ca46419 (diff)
downloadcmocka-ab3ec0da8c55a68bcd8b7dda9c0a475e93cb4ffb.tar.gz
cmocka-ab3ec0da8c55a68bcd8b7dda9c0a475e93cb4ffb.tar.bz2
cmocka-ab3ec0da8c55a68bcd8b7dda9c0a475e93cb4ffb.zip
include: Protect config.h inclusion
Thanks to Gregory Pakosz. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--include/cmocka_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cmocka_private.h b/include/cmocka_private.h
index c67f8db..d20d841 100644
--- a/include/cmocka_private.h
+++ b/include/cmocka_private.h
@@ -17,7 +17,9 @@
#ifndef CMOCKA_PRIVATE_H_
#define CMOCKA_PRIVATE_H_
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdint.h>