diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-05-19 00:26:56 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-05-19 00:26:56 +0000 |
commit | 2d98de1b3ae2ade8b1e5493bc63c0c1d776deeb1 (patch) | |
tree | afb0807f148c4452f060ad8456a0fcb56dbae8f8 /init.cpp | |
parent | 966cca4bd4a6d869583fb47f5f66ed4672c007ff (diff) |
Mac OS build fixes by laszlov0.2.8
-- version 0.2.8
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@76 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -284,6 +284,10 @@ bool CMyApp::OnInit2() _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, CreateFileA("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0));
#endif
+#if _MSC_VER >= 1400
+ // Disable confusing "helpful" text message on abort, ctrl-c
+ _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
+#endif
#if defined(__WXMSW__) && defined(__WXDEBUG__) && wxUSE_GUI
// Disable malfunctioning wxWidgets debug assertion
g_isPainting = 10000;
@@ -291,10 +295,12 @@ bool CMyApp::OnInit2() #if wxUSE_GUI
wxImage::AddHandler(new wxPNGHandler);
#endif
-#ifdef __WXMSW__
+#if defined(__WXMSW__ ) || defined(__WXMAC__)
SetAppName("Bitcoin");
#else
SetAppName("bitcoin");
+#endif
+#ifndef __WXMSW__
umask(077);
#endif
#ifdef __WXMSW__
|