Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
547:495af6dc26a6 | 548:c35473dc6831 |
---|---|
100 | 100 |
101 // *********************************************** | 101 // *********************************************** |
102 // ** Allow compile on VisualC ** | 102 // ** Allow compile on VisualC ** |
103 // *********************************************** | 103 // *********************************************** |
104 | 104 |
105 #ifdef WIN32 | 105 #if defined(WIN32) || defined(UNIX) |
106 // Some keywords just dont exists on Visual C++: | 106 // Some keywords just dont exists on Visual C++: |
107 # define CROSS_COMPILE | 107 # define CROSS_COMPILE |
108 # define __18CXX | 108 # define __18CXX |
109 # define ram | 109 # define ram |
110 # define rom | 110 # define rom |
111 # define overlay | 111 # define overlay |
112 # define PARAMETER | 112 # define PARAMETER |
113 | 113 |
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 # pragma warning(disable: 4244 4068 4305) | 117 # ifdef WIN32 |
118 # pragma warning(disable: 4244 4068 4305) | |
119 # endif | |
118 #else | 120 #else |
119 # define PARAMETER static | 121 # define PARAMETER static |
120 # ifdef __DEBUG | 122 # ifdef __DEBUG |
121 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__) | 123 # define assert(predicate) if( !(predicate) ) assert_failed(__LINE__) |
122 # else | 124 # else |