Changeset ffc3407d in OpenModelica
- Timestamp:
- 2022-05-19T13:52:34+02:00 (2 years ago)
- Children:
- 57178daf
- Parents:
- f0e38eb
- git-author:
- Mahder Gebremedhin <mahder.geb@…> (05/19/22 12:26:11)
- git-committer:
- Mahder Gebremedhin <mahder.geb@…> (05/19/22 13:52:34)
- Location:
- OMCompiler
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/runtime/Dynload_omc.cpp
ra0d552b rffc3407d 33 33 34 34 #if defined(_MSC_VER) || defined(__MINGW32__) 35 #define WIN32_LEAN_AND_MEAN36 35 #include <windows.h> 37 36 #endif -
OMCompiler/Compiler/runtime/Makefile.omdev.mingw
rd77d5a5 rffc3407d 51 51 CC = gcc 52 52 CXX = g++ 53 override CFLAGS += $(USE_CORBA) $(USE_METIS) -Werror=implicit-function-declaration -Wall -Wno-unused-variable -I$(OMC_CONFIG_INC) -I$(top_builddir)/SimulationRuntime/c -I$(top_builddir)/SimulationRuntime/c/simulation/results -I$(top_builddir)/SimulationRuntime/c/util -I$(top_builddir)/SimulationRuntime/c/meta -I$(top_builddir)/SimulationRuntime/c/meta/gc $(CORBAINCL) $(GCINCLUDE) -I$(FMIINCLUDE) -I$(CJSONINCLUDE) -I$(GRAPHINCLUDE) -I$(LPSOLVEINCLUDE) -I$(SQLITE3INCLUDE) -I$(ZMQINCLUDE) -I"$(TOP_DIR)/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6" -I"$(TOP_DIR)/3rdParty/FMIL/build/zlib/" -I"$(TOP_DIR)/3rdParty/libffi/install/include/" 53 override CFLAGS += $(USE_CORBA) $(USE_METIS) -Werror=implicit-function-declaration -Wall -Wno-unused-variable -I$(OMC_CONFIG_INC) -I$(top_builddir)/SimulationRuntime/c -I$(top_builddir)/SimulationRuntime/c/simulation/results -I$(top_builddir)/SimulationRuntime/c/util -I$(top_builddir)/SimulationRuntime/c/meta -I$(top_builddir)/SimulationRuntime/c/meta/gc $(CORBAINCL) $(GCINCLUDE) -I$(FMIINCLUDE) -I$(CJSONINCLUDE) -I$(GRAPHINCLUDE) -I$(LPSOLVEINCLUDE) -I$(SQLITE3INCLUDE) -I$(ZMQINCLUDE) -I"$(TOP_DIR)/3rdParty/FMIL/ThirdParty/Zlib/zlib-1.2.6" -I"$(TOP_DIR)/3rdParty/FMIL/build/zlib/" -I"$(TOP_DIR)/3rdParty/libffi/install/include/" -DWIN32_LEAN_AND_MEAN 54 54 override CXXFLAGS += -std=c++11 $(CFLAGS) 55 55 -
OMCompiler/Compiler/runtime/Print_omc.c
ra0d552b rffc3407d 30 30 31 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN33 32 #include <windows.h> 34 33 #endif -
OMCompiler/Compiler/runtime/Settings_omc.cpp
ra0d552b rffc3407d 32 32 33 33 #if defined(_MSC_VER) || defined(__MINGW32__) 34 #define WIN32_LEAN_AND_MEAN35 34 #include <windows.h> 36 35 #endif -
OMCompiler/Compiler/runtime/SimulationResults_omc.c
ra0d552b rffc3407d 30 30 31 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN33 32 #include <windows.h> 34 33 #endif -
OMCompiler/Compiler/runtime/Socket_omc.c
ra0d552b rffc3407d 29 29 */ 30 30 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN 31 #if defined(_MSC_VER) || defined(__MINGW32__) 33 32 #include <windows.h> 34 33 #endif -
OMCompiler/Compiler/runtime/System_omc.c
r6cbe437 rffc3407d 30 30 31 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN33 32 #include <windows.h> 34 33 #endif -
OMCompiler/Compiler/runtime/ZeroMQ_omc.c
ra0d552b rffc3407d 29 29 */ 30 30 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN 31 #if defined(_MSC_VER) || defined(__MINGW32__) 33 32 #include <windows.h> 34 33 #endif -
OMCompiler/Compiler/runtime/omc_communication_impl.cpp
r83be5f2b rffc3407d 36 36 // windows and mingw32 37 37 #if defined(__MINGW32__) || defined(_MSC_VER) 38 #define WIN32_LEAN_AND_MEAN39 38 #include <windows.h> 40 39 -
OMCompiler/Compiler/runtime/settingsimpl.c
r81282189 rffc3407d 52 52 53 53 #if defined(_WIN32) 54 #define WIN32_LEAN_AND_MEAN55 54 #include <windows.h> 56 55 #endif -
OMCompiler/Parser/Makefile.omdev.mingw
r702aee8 rffc3407d 2 2 CXX=g++ 3 3 CFLAGS=-O3 -Wall 4 CPPFLAGS=$(RMLINC) -I. -I$(ANTLR) -I$(ANTLR)/include $(BUILDINC) -I../3rdParty/gc/include 4 CPPFLAGS=$(RMLINC) -I. -I$(ANTLR) -I$(ANTLR)/include $(BUILDINC) -I../3rdParty/gc/include -DWIN32_LEAN_AND_MEAN 5 5 SHREXT=.dll 6 6 -
OMCompiler/Parser/Parser_omc.c
r98ded47 rffc3407d 30 30 31 31 #if defined(_MSC_VER) || defined(__MINGW32__) 32 #define WIN32_LEAN_AND_MEAN33 32 #include <windows.h> 34 33 #endif -
OMCompiler/SimulationRuntime/c/Makefile.common
rf0e38eb rffc3407d 16 16 INCLUDE_NONFMI=-I. -I$(builddir_inc)/c 17 17 18 CPPFLAGS = -I$(OMC_CONFIG_INC) -I$(top_builddir)/Compiler/runtime -I$(top_builddir)/3rdParty/gc/include -I$(top_builddir)/3rdParty/FMIL/install/include/ -I$(top_builddir)/3rdParty/lis-1.4.12/include/ -I$(builddir_inc)/sundials/ -I$(builddir_inc)/c/suitesparse/ $(CONFIG_CPPFLAGS) -DGC_REDIRECT_TO_LOCAL -DLINK_SUNDIALS_STATIC 18 CPPFLAGS = -I$(OMC_CONFIG_INC) -I$(top_builddir)/Compiler/runtime -I$(top_builddir)/3rdParty/gc/include -I$(top_builddir)/3rdParty/FMIL/install/include/ -I$(top_builddir)/3rdParty/lis-1.4.12/include/ -I$(builddir_inc)/sundials/ -I$(builddir_inc)/c/suitesparse/ $(CONFIG_CPPFLAGS) -DGC_REDIRECT_TO_LOCAL -DLINK_SUNDIALS_STATIC -DWIN32_LEAN_AND_MEAN 19 19 20 20 # On MinGW assume that we have ipopt. For linux this is actually checked and -
OMCompiler/SimulationRuntime/c/cmake_2.8.cmake
raec55cb rffc3407d 79 79 if(MSVC) 80 80 add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_COMPLEX_DEFINED) 81 # GC shall not use a dll 82 add_definitions(-DGC_NOT_DLL)81 82 add_definitions(-DWIN32_LEAN_AND_MEAN) 83 83 endif(MSVC) 84 84 -
OMCompiler/SimulationRuntime/c/cmake_3.14.cmake
r627bacf rffc3407d 36 36 37 37 target_sources(OpenModelicaRuntimeC PRIVATE ${OMC_SIMRT_GC_SOURCES} ${OMC_SIMRT_UTIL_SOURCES} ${OMC_SIMRT_META_SOURCES}) 38 target_link_libraries(OpenModelicaRuntimeC PUBLIC omc::3rd::omcgc)39 40 38 target_include_directories(OpenModelicaRuntimeC PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) 41 39 40 # Add the define WIN32_LEAN_AND_MEAN to this lib and anything that links to it. 41 # The reason is that the define tells windows.h not to include winsock.h. We want 42 # to use winsock2.h in some 3rdParty libraries and the two can not be used simultaneously. 43 # winsock2.h is backwards compatible with winsock.h. 44 target_compile_definitions(OpenModelicaRuntimeC PUBLIC WIN32_LEAN_AND_MEAN) 45 42 46 target_link_libraries(OpenModelicaRuntimeC PUBLIC OMCPThreads::OMCPThreads) 47 target_link_libraries(OpenModelicaRuntimeC PUBLIC omc::3rd::omcgc) 43 48 44 49 if(MINGW) -
OMCompiler/SimulationRuntime/c/openmodelica.h
r83be5f2b rffc3407d 71 71 #include "openmodelica_types.h" 72 72 #if defined(__MINGW32__) || defined(_MSC_VER) 73 #if !defined(WIN32_LEAN_AND_MEAN) 73 74 #define WIN32_LEAN_AND_MEAN 75 #endif 74 76 #if !defined(NOMINMAX) 75 77 #define NOMINMAX -
OMCompiler/SimulationRuntime/c/simulation/simulation_runtime.cpp
r68f0cde rffc3407d 49 49 #ifndef _MSC_VER 50 50 #include <regex.h> 51 #endif 52 53 /* For CommandLineToArgvW. */ 54 #if defined(__MINGW32__) || defined(_MSC_VER) 55 #include <windows.h> 56 #include <shellapi.h> 51 57 #endif 52 58 -
OMCompiler/SimulationRuntime/c/util/java_interface.c
r83be5f2b rffc3407d 33 33 #if defined(__MINGW32__) || defined(_MSC_VER) /* Windows/MinGW */ 34 34 35 #define WIN32_LEAN_AND_MEAN36 35 #include <windows.h> 37 36 #define MAXPATHLEN 1024 -
OMCompiler/SimulationRuntime/c/util/omc_msvc.h
rf11277c4 rffc3407d 36 36 37 37 #include <math.h> /* Make sure we try to get INFINITY and NAN from the system. They are way cooler */ 38 /*For _MAX_PATH on MSVC */ 39 #include <stdlib.h> 38 40 39 41 #ifndef NaN -
OMCompiler/SimulationRuntime/c/util/rtclock.h
rf11277c4 rffc3407d 92 92 93 93 #if defined(__MINGW32__) || defined(_MSC_VER) 94 #include <win sock2.h>94 #include <windows.h> 95 95 #if defined(_MSC_VER) 96 96 #include <intrin.h>
Note: See TracChangeset
for help on using the changeset viewer.