Skip to content

Commit

Permalink
Merge pull request #1 from KoichiYasuoka/patch-1
Browse files Browse the repository at this point in the history
Recent CYGWIN gcc does not use "wmain"
  • Loading branch information
dkawahara committed Apr 27, 2020
2 parents 4ece11c + d317ed3 commit 165d699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRF++-0.58/winmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class CommandLine {
};
} // namespace

#ifndef __CYGWIN__
#define main(argc, argv) wmain_to_main_wrapper(argc, argv)

int wmain_to_main_wrapper(int argc, char **argv);
Expand All @@ -67,3 +68,4 @@ int wmain(int argc, wchar_t **argv) {
return wmain_to_main_wrapper(cmd.argc(), cmd.argv());
}
#endif
#endif

0 comments on commit 165d699

Please sign in to comment.