Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MediaArea/ZenLib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Gervais <gervais.maxime@gmail.com>2021-10-05 23:29:14 +0300
committerMaxime Gervais <gervais.maxime@gmail.com>2021-10-05 23:29:14 +0300
commitc6faa38c897205f3aeb03b8cfe838a47c7cc015d (patch)
tree47812663be29032b8300ad16715a84d6ba0e60b8 /Project
parent6e10c2222aec9442ef65fb083729aeffd5bbc6c3 (diff)
Test if size_t conflicts with ZenLib::int64u
Signed-off-by: Maxime Gervais <gervais.maxime@gmail.com>
Diffstat (limited to 'Project')
-rw-r--r--Project/GNU/Library/configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/Project/GNU/Library/configure.ac b/Project/GNU/Library/configure.ac
index 500101b..54a1dbf 100644
--- a/Project/GNU/Library/configure.ac
+++ b/Project/GNU/Library/configure.ac
@@ -201,7 +201,14 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
void foo(unsigned int) {}
int main () {foo(size_t(0)); return 0;}])], [size_t_is_long="no"], [size_t_is_long="yes"])
-if test "$size_t_is_long" = "yes"; then
+AC_LANG([C++])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ #include <cstdlib>
+ void foo(size_t) {}
+ void foo(unsigned long long) {}
+ int main () {foo(size_t(0)); return 0;}])], [size_t_is_long_long="no"], [size_t_is_long_long="yes"])
+
+if test "$size_t_is_long" = "yes" -a "$size_t_is_long_long" = "no"; then
CXXFLAGS="$CXXFLAGS -DSIZE_T_IS_LONG"
ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DSIZE_T_IS_LONG"
fi