* RCS-ID: $Id$
* Copyright: (c)
* Licence: wxWindows licence
-**/
+*/
/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
#include "wx/platform.h"
+/* RN - only double-check the environment when building in C++
+ Shouldn't configure pass the environment to all sub-libs too? */
+#ifdef __cplusplus
/* Make sure the environment is set correctly */
-#if defined(__WXMSW__) && defined(__X__)
- #error "Target can't be both X and Windows"
-#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
+# if defined(__WXMSW__) && defined(__X__)
+# error "Target can't be both X and Windows"
+# elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
!defined(__WXPM__) && !defined(__WXMAC__) && !defined(__WXCOCOA__) && \
!defined(__X__) && !defined(__WXMGL__) && !defined(__WXX11__) && \
wxUSE_GUI
- #ifdef __UNIX__
- #error "No Target! You should use wx-config program for compilation flags!"
- #else /* !Unix */
- #error "No Target! You should use supplied makefiles for compilation!"
- #endif /* Unix/!Unix */
-#endif
+# ifdef __UNIX__
+# error "No Target! You should use wx-config program for compilation flags!"
+# else /* !Unix */
+# error "No Target! You should use supplied makefiles for compilation!"
+# endif /* Unix/!Unix */
+# endif
+#endif /*__cplusplus*/
#ifndef __WXWINDOWS__
#define __WXWINDOWS__ 1
typedef void* WXWidget;
typedef void* WXWindow;
typedef void* WXDisplay;
-/*
-typedef WindowPtr WXHWND;
-typedef Handle WXHANDLE;
-typedef CIconHandle WXHICON;
+
+/* typedef WindowPtr WXHWND; */
+/* typedef Handle WXHANDLE; */
+/* typedef CIconHandle WXHICON; */
/* typedef unsigned long WXHFONT; */
-typedef MenuHandle WXHMENU;
+/* typedef MenuHandle WXHMENU; */
/* typedef unsigned long WXHPEN; */
/* typedef unsigned long WXHBRUSH; */
/* typedef unsigned long WXHPALETTE; */
-typedef CursHandle WXHCURSOR;
-typedef RgnHandle WXHRGN;
+/* typedef CursHandle WXHCURSOR; */
+/* typedef RgnHandle WXHRGN; */
/* typedef unsigned long WXHACCEL; */
/* typedef unsigned long WXHINSTANCE; */
/* typedef unsigned long WXHIMAGELIST; */
/* typedef unsigned long WXHGLOBAL; */
-typedef GrafPtr WXHDC;
+/* typedef GrafPtr WXHDC; */
/* typedef unsigned int WXWPARAM; */
/* typedef long WXLPARAM; */
/* typedef void * WXRGNDATA; */
/* typedef void * WXDRAWITEMSTRUCT; */
/* typedef void * WXMEASUREITEMSTRUCT; */
/* typedef void * WXLPCREATESTRUCT; */
-typedef int (*WXFARPROC)();
+/* typedef int (*WXFARPROC)(); */
+
+/* typedef WindowPtr WXWindow; */
+/* typedef ControlHandle WXWidget; */
-typedef WindowPtr WXWindow;
-typedef ControlHandle WXWidget;
-*/
#endif
#ifdef __WXCOCOA__