Skip to content

Commit

Permalink
Use if defined for all the other checks also.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed May 5, 2024
1 parent 416faeb commit bacef9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions oss-fuzz/encoder_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,size_t Size)

ssize_t
offset;

std::string
encoder=FUZZ_ENCODER;

Expand Down Expand Up @@ -88,7 +88,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data,size_t Size)
return(0);
}

#if FUZZ_IMAGEMAGICK_ENCODER_WRITE || BUILD_MAIN
#if FUZZ_IMAGEMAGICK_ENCODER_WRITE || defined(BUILD_MAIN)
try
{
Magick::Blob
Expand Down
4 changes: 2 additions & 2 deletions oss-fuzz/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class FuzzingInitializer

FuzzingInitializer fuzzingInitializer;

#if BUILD_MAIN
#if defined(BUILD_MAIN)
#include "encoder_format.h"

EncoderFormat encoderFormat;

#define FUZZ_ENCODER encoderFormat.get()
#endif // BUILD_MAIN
#endif

0 comments on commit bacef9e

Please sign in to comment.