Просмотр исходного кода

Let's gamble that everything has assert.h.

(and we'll mask out specific platforms if we find one that doesn't.)
Ryan C. Gordon 14 лет назад
Родитель
Сommit
bb6c5e468c
2 измененных файлов с 0 добавлено и 10 удалено
  1. 0 6
      CMakeLists.txt
  2. 0 4
      src/physfs_internal.h

+ 0 - 6
CMakeLists.txt

@@ -209,12 +209,6 @@ ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
     MESSAGE(WARNING " ***")
     MESSAGE(WARNING " ***")
 ENDIF(PHYSFS_HAVE_THREAD_SUPPORT)
 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 ...
 # Archivers ...
 
 

+ 0 - 4
src/physfs_internal.h

@@ -23,11 +23,7 @@
 
 
 #include "physfs_platforms.h"
 #include "physfs_platforms.h"
 
 
-#ifdef HAVE_ASSERT_H
 #include <assert.h>
 #include <assert.h>
-#elif (!defined assert)
-#define assert(x)
-#endif
 
 
 /* !!! FIXME: remove this when revamping stack allocation code... */
 /* !!! FIXME: remove this when revamping stack allocation code... */
 #if defined(_MSC_VER) || defined(__MINGW32__)
 #if defined(_MSC_VER) || defined(__MINGW32__)