diff --git a/crf_learn.cpp b/crf_learn.cpp index 8965ce6..444dd28 100644 --- a/crf_learn.cpp +++ b/crf_learn.cpp @@ -6,7 +6,9 @@ // Copyright(C) 2005-2007 Taku Kudo // #include "crfpp.h" +#ifdef _WIN32 #include "winmain.h" +#endif int main(int argc, char **argv) { return crfpp_learn(argc, argv); diff --git a/crf_test.cpp b/crf_test.cpp index 1d0ba26..97f85c4 100644 --- a/crf_test.cpp +++ b/crf_test.cpp @@ -6,7 +6,9 @@ // Copyright(C) 2005-2007 Taku Kudo // #include "crfpp.h" +#ifdef _WIN32 #include "winmain.h" +#endif int main(int argc, char **argv) { return crfpp_test(argc, argv);