]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Replace AndroidConfigLocal.h with a header in utils/compat
authorTobias Brunner <tobias@strongswan.org>
Wed, 11 Nov 2015 15:51:16 +0000 (16:51 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 12 Nov 2015 13:10:33 +0000 (14:10 +0100)
src/libstrongswan/Android.mk
src/libstrongswan/Makefile.am
src/libstrongswan/utils/compat/android.h [moved from src/libstrongswan/AndroidConfigLocal.h with 88% similarity]
src/libstrongswan/utils/utils.h

index 0464519fac5b0e722d27b7b468c2be1f71afc4fd..db3da8e150088763e52f5730d7101a7f58885eca 100644 (file)
@@ -117,8 +117,7 @@ LOCAL_SRC_FILES += $(call add_plugin, xcbc)
 
 # build libstrongswan ----------------------------------------------------------
 
-LOCAL_CFLAGS := $(strongswan_CFLAGS) \
-       -include $(LOCAL_PATH)/AndroidConfigLocal.h
+LOCAL_CFLAGS := $(strongswan_CFLAGS)
 
 LOCAL_MODULE := libstrongswan
 
index 7ec5f37cc843078214a399ad8d84433a9c6c30e2..ed3b85dd453b5213c513b1519cc8e383b89d221d 100644 (file)
@@ -110,7 +110,7 @@ utils/lexparser.h utils/optionsfrom.h utils/capabilities.h utils/backtrace.h \
 utils/cpu_feature.h utils/leak_detective.h utils/printf_hook/printf_hook.h \
 utils/printf_hook/printf_hook_vstr.h utils/printf_hook/printf_hook_builtin.h \
 utils/parser_helper.h utils/test.h utils/integrity_checker.h utils/process.h \
-utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h \
+utils/utils/strerror.h utils/compat/windows.h utils/compat/apple.h utils/compat/android.h \
 utils/utils/atomics.h utils/utils/types.h utils/utils/byteorder.h \
 utils/utils/string.h utils/utils/memory.h utils/utils/tty.h utils/utils/path.h \
 utils/utils/status.h utils/utils/object.h utils/utils/time.h utils/utils/align.h
@@ -191,7 +191,7 @@ endif
 EXTRA_DIST = \
 asn1/oid.txt asn1/oid.pl \
 crypto/proposal/proposal_keywords_static.txt \
-Android.mk AndroidConfigLocal.h
+Android.mk
 
 BUILT_SOURCES = \
 $(srcdir)/asn1/oid.c $(srcdir)/asn1/oid.h \
similarity index 88%
rename from src/libstrongswan/AndroidConfigLocal.h
rename to src/libstrongswan/utils/compat/android.h
index ae0e60633197c95b23db02cefa24b97ac0ede146..91b6b148336d623d97c619cc6bbd06a5f74c245b 100644 (file)
  * for more details.
  */
 
+/**
+ * @defgroup android android
+ * @{ @ingroup compat
+ */
+
+#ifndef ANDROID_H_
+#define ANDROID_H_
+
 /* stuff defined in AndroidConfig.h, which is included using the -include
  * command-line option, thus cannot be undefined using -U CFLAGS options.
  * the reason we have to undefine these flags in the first place, is that
  * AndroidConfig.h defines them as 0, which in turn means that they are
  * actually defined. */
-
 #undef HAVE_BACKTRACE
+
+#endif /** ANDROID_H_ @}*/
index acc15c42a8c6ebdafffc22fd6e1c21bf65328316..44d882babf3c8a724d17eba782b95a3aae7c4b40 100644 (file)
@@ -56,6 +56,9 @@
 #ifdef __APPLE__
 # include "compat/apple.h"
 #endif
+#ifdef __ANDROID__
+# include "compat/android.h"
+#endif
 
 /**
  * Initialize utility functions