Skip to content

Commit

Permalink
Let's gamble that everything has assert.h.
Browse files Browse the repository at this point in the history
(and we'll mask out specific platforms if we find one that doesn't.)
  • Loading branch information
icculus committed Mar 20, 2012
1 parent e5fa9ab commit bb6c5e4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Expand Up @@ -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 ...

Expand Down
4 changes: 0 additions & 4 deletions src/physfs_internal.h
Expand Up @@ -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__)
Expand Down

0 comments on commit bb6c5e4

Please sign in to comment.