Move #error for non-MSVC to the top of file.
This allows to reduce indentation of the rest of it and avoid a very long #if...#else. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9,11 +9,14 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#error "This file should only be included when using Microsoft Visual C++"
|
||||||
|
#endif
|
||||||
|
|
||||||
// VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
|
// VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
|
||||||
// the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
|
// the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
|
||||||
// explicitly!
|
// explicitly!
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#include "wx/version.h"
|
#include "wx/version.h"
|
||||||
#include "wx/cpp.h"
|
#include "wx/cpp.h"
|
||||||
|
|
||||||
@@ -135,7 +138,3 @@
|
|||||||
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))
|
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))
|
||||||
#endif
|
#endif
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
#else
|
|
||||||
#error "This file should only be included when using Microsoft Visual C++"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user