Mercurial > public > mk2
diff code_part1/OSTC_code_c_part2/p2_definitions.h @ 548:c35473dc6831
Make shared headers UNIX compatibles.
author | JeanDo |
---|---|
date | Sat, 21 Jan 2012 15:36:44 +0100 |
parents | f5a06b9e2fef |
children | d1719622111e |
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_definitions.h Fri Jan 20 10:30:33 2012 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_definitions.h Sat Jan 21 15:36:44 2012 +0100 @@ -102,7 +102,7 @@ // ** Allow compile on VisualC ** // *********************************************** -#ifdef WIN32 +#if defined(WIN32) || defined(UNIX) // Some keywords just dont exists on Visual C++: # define CROSS_COMPILE # define __18CXX @@ -111,10 +111,12 @@ # define overlay # define PARAMETER -#include <assert.h> +# include <assert.h> // Avoid warnings about float/double mismatches: -# pragma warning(disable: 4244 4068 4305) +# ifdef WIN32 +# pragma warning(disable: 4244 4068 4305) +# endif #else # define PARAMETER static # ifdef __DEBUG