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:
Vadim Zeitlin
2009-07-25 22:26:15 +00:00
parent ad73320555
commit c82c5274f2

View File

@@ -9,11 +9,14 @@
// 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
// the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
// explicitly!
#ifdef _MSC_VER
#include "wx/version.h"
#include "wx/cpp.h"
@@ -135,7 +138,3 @@
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))
#endif
#endif // wxUSE_GUI
#else
#error "This file should only be included when using Microsoft Visual C++"
#endif