Skip to content

Commit c2f964a

Browse files
tests: Remove Cygwin WinMain workaround
1 parent db4bd32 commit c2f964a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/fuzz/fuzz.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,9 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
4040
return 0;
4141
}
4242

43-
// Disabled under WIN32 due to clash with Cygwin's WinMain.
44-
#ifndef WIN32
4543
// Declare main(...) "weak" to allow for libFuzzer linking. libFuzzer provides
4644
// the main(...) function.
47-
__attribute__((weak))
48-
#endif
49-
int
50-
main(int argc, char** argv)
45+
__attribute__((weak)) int main(int argc, char** argv)
5146
{
5247
initialize();
5348
#ifdef __AFL_INIT

0 commit comments

Comments
 (0)