]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for !wxUSE_ON_FATAL_EXCEPTION
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Feb 2005 13:54:52 +0000 (13:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Feb 2005 13:54:52 +0000 (13:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/main.cpp

index 512287bf440e7d00257801e6f3a3f4e91e6a0dab..83f224db2c7d1e0143fa9b0b542461f5bb201690 100644 (file)
@@ -61,6 +61,9 @@
     #define HINSTANCE HANDLE
 #endif
 
     #define HINSTANCE HANDLE
 #endif
 
+// defined in common/init.cpp
+extern int wxEntryReal(int& argc, wxChar **argv);
+
 // ============================================================================
 // implementation: various entry points
 // ============================================================================
 // ============================================================================
 // implementation: various entry points
 // ============================================================================
 // OnFatalException() if necessary
 #if wxUSE_ON_FATAL_EXCEPTION
 
 // OnFatalException() if necessary
 #if wxUSE_ON_FATAL_EXCEPTION
 
-// defined in common/init.cpp
-extern int wxEntryReal(int& argc, wxChar **argv);
-
 // global pointer to exception information, only valid inside OnFatalException,
 // used by wxStackWalker and wxCrashReport
 extern EXCEPTION_POINTERS *wxGlobalSEInformation = NULL;
 // global pointer to exception information, only valid inside OnFatalException,
 // used by wxStackWalker and wxCrashReport
 extern EXCEPTION_POINTERS *wxGlobalSEInformation = NULL;
@@ -226,6 +226,8 @@ int wxEntry(int& argc, wxChar **argv)
 
 #else // !wxUSE_ON_FATAL_EXCEPTION
 
 
 #else // !wxUSE_ON_FATAL_EXCEPTION
 
+#ifdef __VISUALC__
+
 static void
 wxSETranslator(unsigned int WXUNUSED(code), EXCEPTION_POINTERS * WXUNUSED(ep))
 {
 static void
 wxSETranslator(unsigned int WXUNUSED(code), EXCEPTION_POINTERS * WXUNUSED(ep))
 {
@@ -233,6 +235,8 @@ wxSETranslator(unsigned int WXUNUSED(code), EXCEPTION_POINTERS * WXUNUSED(ep))
     throw;
 }
 
     throw;
 }
 
+#endif // __VISUALC__
+
 int wxEntry(int& argc, wxChar **argv)
 {
     DisableAutomaticSETranslator();
 int wxEntry(int& argc, wxChar **argv)
 {
     DisableAutomaticSETranslator();