Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 8, 2011, 6:27:31 AM (14 years ago)
Author:
rgrieder
Message:

Simplified a workaround.

Location:
code/branches/mac_osx/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/OrxonoxConfig.cmake

    r7681 r8045  
    6969ENDIF(MSVC)
    7070
    71 # Part of a woraround for OS X warnings. See OrxonoxConfig.h.in
    72 IF(HAVE_STDINT_H)
    73   SET(HAVE_STDINT_H 1)
    74 ELSE()
    75   SET(HAVE_STDINT_H 0)
    76 ENDIF()
    77 
    7871# Check iso646.h include (literal operators)
    7972INCLUDE(CheckIncludeFileCXX)
    8073CHECK_INCLUDE_FILE_CXX(iso646.h HAVE_ISO646_H)
     74
     75# Part of a woraround for OS X warnings. See OrxonoxConfig.h.in
     76SET(ORX_HAVE_STD_INT HAVE_STDINT_H)
    8177
    8278############## Configured Headers ###############
  • code/branches/mac_osx/src/OrxonoxConfig.h.in

    r7621 r8045  
    162162
    163163// On OS X some headers already define HAVE_STDINT_H and that spits out
    164 // some warnings. Therefore we use this syntax.
     164// some warnings. Therefore we use this macro.
    165165// Note: This requires some extra code in OrxonoxConfig.cmake
    166 #if @HAVE_STDINT_H@
     166#cmakedefine ORX_HAVE_STDINT_H
     167#ifdef ORX_HAVE_STDINT_H
    167168#  include <stdint.h>
    168169#elif defined(ORXONOX_COMPILER_MSVC)
Note: See TracChangeset for help on using the changeset viewer.