Skip to content

Commit

Permalink
Silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Jan 28, 2024
1 parent b69f516 commit c389988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Modelica/Resources/BuildProjects/CMake/compiler_options.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
include(CheckSymbolExists)
check_symbol_exists(memcpy "string.h" HAVE_MEMCPY)
check_symbol_exists(_open "io.h" HAVE__OPEN)
check_symbol_exists(_read "io.h" HAVE__READ)
check_symbol_exists(_write "io.h" HAVE__WRITE)
check_symbol_exists(_close "io.h" HAVE__CLOSE)

include(CheckIncludeFile)
check_include_file("dirent.h" HAVE_DIRENT_H)
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Resources/BuildProjects/CMake/src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ endif()
if(MODELICA_DUMMY_FUNCTION_USERTAB)
target_compile_definitions(ModelicaStandardTables PUBLIC -DDUMMY_FUNCTION_USERTAB=1)
endif()
if(HAVE_WINAPIFAMILY_H)
if(HAVE_WINAPIFAMILY_H OR (HAVE__OPEN AND HAVE__READ AND HAVE__WRITE AND HAVE__CLOSE))
target_compile_definitions(zlib PUBLIC -DWINAPI_FAMILY=100)
endif()
target_compile_definitions(ModelicaMatIO PUBLIC -DHAVE_ZLIB=1)
Expand Down

0 comments on commit c389988

Please sign in to comment.