Skip to content

Commit

Permalink
Remove obsolete #undef __STRICT_ANSI__
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Oct 25, 2021
1 parent 7bd5ad2 commit fec077c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,14 +498,16 @@ endif(BUILD_TESTING)
# set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-m${USE_SSE_SET}")
# endif(USE_SSE_SET)

# we need some specific functions:
# we need some specific functions/macros outside of ANSI C:
if(NOT WIN32)
if(CMAKE_SYSTEM MATCHES "SunOS.*")
add_definitions("-D_XOPEN_SOURCE=600")
else()
add_definitions("-D_XOPEN_SOURCE=700")
endif(CMAKE_SYSTEM MATCHES "SunOS.*")
endif(NOT WIN32)
else()
add_definitions("-D_USE_MATH_DEFINES")
endif()

# Set default component name - that way external modules like RawSpeed will install their
# materials under the default component and not under 'Unspecified'
Expand Down
1 change: 0 additions & 1 deletion src/win/win.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#endif
#define __MSVCRT_VERSION__ 0x0700

#undef __STRICT_ANSI__
#define XMD_H

#undef _WIN32_WINNT
Expand Down

0 comments on commit fec077c

Please sign in to comment.