File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
OMCompiler/SimulationRuntime/c Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,18 @@ typedef void* modelica_fnptr;
5959/* When MetaModelica grammar is enabled, all strings are boxed */
6060typedef modelica_metatype modelica_string ;
6161
62- #if defined(_LP64 )
62+ #if defined(_LP64 ) /* linux 64bit*/
63+
6364#define MMC_SIZE_DBL 8
6465#define MMC_SIZE_INT 8
6566#define MMC_LOG2_SIZE_INT 3
6667#define PRINT_MMC_SINT_T "ld"
6768#define PRINT_MMC_UINT_T "lu"
6869typedef unsigned long mmc_uint_t ;
6970typedef long mmc_sint_t ;
70- #elif defined(_LLP64 ) || defined(_WIN64 ) || defined(__MINGW64__ )
71+
72+ #elif defined(_LLP64 ) || defined(_WIN64 ) || defined(__MINGW64__ ) /* windows 64bit */
73+
7174#define MMC_SIZE_DBL 8
7275#define MMC_SIZE_INT 8
7376#define MMC_LOG2_SIZE_INT 3
@@ -81,14 +84,17 @@ typedef long mmc_sint_t;
8184#define PRINT_MMC_UINT_T PRIu64
8285typedef unsigned long long mmc_uint_t ;
8386typedef long long mmc_sint_t ;
84- #else
87+
88+ #else /* 32bit platforms */
89+
8590#define MMC_SIZE_DBL 8
8691#define MMC_SIZE_INT 4
8792#define MMC_LOG2_SIZE_INT 2
88- #define PRINT_MMC_SINT_T "ld "
89- #define PRINT_MMC_UINT_T "lu "
93+ #define PRINT_MMC_SINT_T "d "
94+ #define PRINT_MMC_UINT_T "u "
9095typedef unsigned int mmc_uint_t ;
9196typedef int mmc_sint_t ;
97+
9298#endif
9399
94100typedef double m_real ;
You can’t perform that action at this time.
0 commit comments