aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/buildh.in
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-22 23:08:36 +0000
committerlloyd <[email protected]>2009-12-22 23:08:36 +0000
commitfa23d991608dc81452965d79c32b402595c620e7 (patch)
treeb9dc375eee63f837fc03aa7b5d6661810c232853 /src/build-data/buildh.in
parent67d6dc793b8445e17ba8d5aa24b8fd09abb67f11 (diff)
Define BOTAN_TARGET_CPU_HAS_KNOWN_ENDIANNESS if the target CPU is known to
be either fixed little or big endian. Unset if mixed endian or unknown.
Diffstat (limited to 'src/build-data/buildh.in')
-rw-r--r--src/build-data/buildh.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in
index 9d7012a73..b784e287e 100644
--- a/src/build-data/buildh.in
+++ b/src/build-data/buildh.in
@@ -53,6 +53,11 @@
%{target_cpu_defines}
+#if defined(BOTAN_TARGET_CPU_IS_LITTLE_ENDIAN) || \
+ defined(BOTAN_TARGET_CPU_IS_BIG_ENDIAN)
+ #define BOTAN_TARGET_CPU_HAS_KNOWN_ENDIANNESS
+#endif
+
%{target_compiler_defines}
/* Module definitions */