Revision: 71991
          http://sourceforge.net/p/brlcad/code/71991
Author:   starseeker
Date:     2018-11-08 14:32:14 +0000 (Thu, 08 Nov 2018)
Log Message:
-----------
Warn if void pointer size is greater than off_t, at least until we have a fix.

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2018-11-05 21:12:10 UTC (rev 71990)
+++ brlcad/trunk/CMakeLists.txt 2018-11-08 14:32:14 UTC (rev 71991)
@@ -2545,6 +2545,13 @@
 BRLCAD_TYPE_SIZE("uintptr_t" "")
 BRLCAD_TYPE_SIZE("sig_t" "signal.h")
 
+# If we have an off_t that's too small, we've got a problem
+if (CMAKE_SIZEOF_VOID_P AND HAVE_OFF_T)
+  if (${CMAKE_SIZEOF_VOID_P} GREATER ${HAVE_OFF_T})
+    message(WARNING "Platform void pointer size is ${CMAKE_SIZEOF_VOID_P}, but 
off_t size is ${HAVE_OFF_T}!")
+  endif (${CMAKE_SIZEOF_VOID_P} GREATER ${HAVE_OFF_T})
+endif (CMAKE_SIZEOF_VOID_P AND HAVE_OFF_T)
+
 # see if we have a TLS intrinsic, first check C++11 compliance
 check_cxx_source_compiles("static thread_local int i = 0; int main() { return 
i; }" HAVE_THREAD_LOCAL)
 if (HAVE_THREAD_LOCAL)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to