Skip to content

Commit

Permalink
now it compiles well on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
galkahana committed Jun 28, 2024
1 parent e2dd6a3 commit e02b651
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions LibPng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ if (${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "aarch64" OR ${CMAKE_HOST_SYSTEM_PRO
)
endif()

# drop obsolete symbol, causing trouble when compiling with clang on mac, and in general unneeded
target_compile_options(LibPng PRIVATE -UTARGET_OS_MAC)

if(WIN32 AND BUILD_SHARED_LIBS)
target_compile_definitions(LibPng PUBLIC PNG_USE_DLL)
endif()
Expand Down
2 changes: 1 addition & 1 deletion PDFWriterTesting/PDFParserFuzzingHarness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "InputByteArrayStream.h"

extern "C" int LLVMFuzzerTestOneInput(const u_int8_t *Data, size_t Size) {
InputByteArrayStream stream {(IOBasicTypes::Byte*) Data, static_cast<LongFilePositionType>( Size )};
InputByteArrayStream stream((IOBasicTypes::Byte*) Data, static_cast<LongFilePositionType>( Size ));

PDFParser parser;

Expand Down
2 changes: 2 additions & 0 deletions Zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ if(Z_HAVE_UNISTD_H)
target_compile_definitions(Zlib PUBLIC HAVE_UNISTD_H=1)
endif(Z_HAVE_UNISTD_H)

# drop obsolete symbol, causing trouble when compiling with clang on mac, and in general unneeded
target_compile_options(Zlib PRIVATE -UTARGET_OS_MAC)

if(WIN32 AND BUILD_SHARED_LIBS)
target_compile_definitions(Zlib PUBLIC ZLIB_DLL)
Expand Down

0 comments on commit e02b651

Please sign in to comment.