comparison code_part1/OSTC_code_c_part2/p2_definitions.h @ 601:d1719622111e

Minor LLVM compatibility cleanups.
author JeanDo <jd.gascuel@free.fr>
date Tue, 26 Jun 2012 21:32:09 +0200
parents c35473dc6831
children f555590f1419
comparison
equal deleted inserted replaced
600:f1860c1237cc 601:d1719622111e
114 # include <assert.h> 114 # include <assert.h>
115 115
116 // Avoid warnings about float/double mismatches: 116 // Avoid warnings about float/double mismatches:
117 # ifdef WIN32 117 # ifdef WIN32
118 # pragma warning(disable: 4244 4068 4305) 118 # pragma warning(disable: 4244 4068 4305)
119 # elif defined(Q_OS_MAC)
120 //# pragma GCC diagnostic error "-Wunknown-pragmas"
121 # pragma GCC diagnostic error "-Wunused-variable"
119 # endif 122 # endif
120 #else 123 #else
121 # define PARAMETER static 124 # define PARAMETER static
122 # ifdef __DEBUG 125 # ifdef __DEBUG
123 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__) 126 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__)