Let's gamble that everything has assert.h.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 19 Mar 2012 20:27:28 -0400
changeset 1232 f930f993412b
parent 1231 8206d0e4cf49
child 1233 53a01072f272
Let's gamble that everything has assert.h. (and we'll mask out specific platforms if we find one that doesn't.)
CMakeLists.txt
src/physfs_internal.h
--- a/CMakeLists.txt	Mon Mar 19 02:58:41 2012 -0400
+++ b/CMakeLists.txt	Mon Mar 19 20:27:28 2012 -0400
@@ -209,12 +209,6 @@
     MESSAGE(WARNING " ***")
 ENDIF(PHYSFS_HAVE_THREAD_SUPPORT)
 
-CHECK_INCLUDE_FILE(assert.h HAVE_ASSERT_H)
-IF(HAVE_ASSERT_H)
-    ADD_DEFINITIONS(-DHAVE_ASSERT_H=1)
-ENDIF(HAVE_ASSERT_H)
-
-
 
 # Archivers ...
 
--- a/src/physfs_internal.h	Mon Mar 19 02:58:41 2012 -0400
+++ b/src/physfs_internal.h	Mon Mar 19 20:27:28 2012 -0400
@@ -23,11 +23,7 @@
 
 #include "physfs_platforms.h"
 
-#ifdef HAVE_ASSERT_H
 #include <assert.h>
-#elif (!defined assert)
-#define assert(x)
-#endif
 
 /* !!! FIXME: remove this when revamping stack allocation code... */
 #if defined(_MSC_VER) || defined(__MINGW32__)