Bläddra i källkod

ENH: We do not really need streams. Also fix the test on windows

Andy Cedilnik 22 år sedan
förälder
incheckning
848364b8e8
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      Tests/UseWX/CMakeLists.txt
  2. 1 1
      Tests/UseWX/WX.cxx

+ 1 - 1
Tests/UseWX/CMakeLists.txt

@@ -2,7 +2,7 @@ PROJECT (UsewxWindows)
 
 
 INCLUDE( ${CMAKE_ROOT}/Modules/Use_wxWindows.cmake)
 INCLUDE( ${CMAKE_ROOT}/Modules/Use_wxWindows.cmake)
 
 
-ADD_EXECUTABLE (UseWX WX.cxx)
+ADD_EXECUTABLE (UseWX WIN32 WX.cxx)
 
 
 #TODO: 
 #TODO: 
 #- dll linking is not working on WIN32, need to '-DWXUSINGDLL' to preprocessor
 #- dll linking is not working on WIN32, need to '-DWXUSINGDLL' to preprocessor

+ 1 - 1
Tests/UseWX/WX.cxx

@@ -51,7 +51,7 @@ bool MyApp::OnInit()
 
 
     //Testing if link to wx debug library
     //Testing if link to wx debug library
 #ifdef __WXDEBUG__
 #ifdef __WXDEBUG__
-    std::cout << "If you read this you're in debug mode." << std::endl;
+    printf("If you read this you're in debug mode.\n");
 #endif  //__WXDEBUG__
 #endif  //__WXDEBUG__
 
 
     wxChar ch = wxT('*');
     wxChar ch = wxT('*');