Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 60fecdd

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix ticket:4509, use correct defines on Windows
1 parent 45d12db commit 60fecdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Compiler/runtime/systemimpl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static char* SystemImpl__readFile(const char* filename)
355355
}
356356

357357
/* adrpo: if size is larger than the max string, return a different string */
358-
#ifndef _LP64
358+
#if !(defined(_LP64) || defined(_LLP64) || defined(_WIN64) || defined(__MINGW64__))
359359
if (statstr.st_size > (pow((double)2, (double)22) * 4)) {
360360
const char *c_tokens[1]={filename};
361361
c_add_message(NULL,85, /* ERROR_OPENING_FILE */

SimulationRuntime/c/meta/meta_modelica_data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* - 2^(32-10) + 1 (header) on 32 bit systems
6464
* - 2^(64-10) + 1 (header) on 64 bit systems
6565
*/
66-
#if defined(_LP64) || defined(_LLP64) || defined(_WIN64)
66+
#if defined(_LP64) || defined(_LLP64) || defined(_WIN64) || defined(__MINGW64__)
6767
#define MMC_MAX_SLOTS (18014398509481984) /* max words slots header */
6868
#else
6969
#define MMC_MAX_SLOTS (4194304) /* max words slots header */

0 commit comments

Comments
 (0)