From bb6c5e468c10c1149199a79f7de186ebc36fcd4d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 19 Mar 2012 20:27:28 -0400 Subject: [PATCH] Let's gamble that everything has assert.h. (and we'll mask out specific platforms if we find one that doesn't.) --- CMakeLists.txt | 6 ------ src/physfs_internal.h | 4 ---- 2 files changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b4e5a72..0be23208 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,12 +209,6 @@ ELSE(PHYSFS_HAVE_THREAD_SUPPORT) 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 ... diff --git a/src/physfs_internal.h b/src/physfs_internal.h index 829e37ef..27082e74 100644 --- a/src/physfs_internal.h +++ b/src/physfs_internal.h @@ -23,11 +23,7 @@ #include "physfs_platforms.h" -#ifdef HAVE_ASSERT_H #include -#elif (!defined assert) -#define assert(x) -#endif /* !!! FIXME: remove this when revamping stack allocation code... */ #if defined(_MSC_VER) || defined(__MINGW32__)