Skip to content

Commit

Permalink
fix ticket:4509, use correct defines on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adrpo authored and OpenModelica-Hudson committed Sep 4, 2017
1 parent 45d12db commit 60fecdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/runtime/systemimpl.c
Expand Up @@ -355,7 +355,7 @@ static char* SystemImpl__readFile(const char* filename)
}

/* adrpo: if size is larger than the max string, return a different string */
#ifndef _LP64
#if !(defined(_LP64) || defined(_LLP64) || defined(_WIN64) || defined(__MINGW64__))
if (statstr.st_size > (pow((double)2, (double)22) * 4)) {
const char *c_tokens[1]={filename};
c_add_message(NULL,85, /* ERROR_OPENING_FILE */
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/meta/meta_modelica_data.h
Expand Up @@ -63,7 +63,7 @@
* - 2^(32-10) + 1 (header) on 32 bit systems
* - 2^(64-10) + 1 (header) on 64 bit systems
*/
#if defined(_LP64) || defined(_LLP64) || defined(_WIN64)
#if defined(_LP64) || defined(_LLP64) || defined(_WIN64) || defined(__MINGW64__)
#define MMC_MAX_SLOTS (18014398509481984) /* max words slots header */
#else
#define MMC_MAX_SLOTS (4194304) /* max words slots header */
Expand Down

0 comments on commit 60fecdd

Please sign in to comment.