X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34cbe514cf01425bdb928c133404ab7b97a661a4..59f098d159a85ad588c000a4528ea04200577781:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index 82b691fd29..76260c94fb 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1,13 +1,13 @@ -/* /////////////////////////////////////////////////////////////////////////// */ -/* Name: defs.h */ -/* Purpose: Declarations/definitions common to all wx source files */ -/* Author: Julian Smart and others */ -/* Modified by: */ -/* Created: 01/02/97 */ -/* RCS-ID: $Id$ */ -/* Copyright: (c) */ -/* Licence: wxWindows licence */ -/* /////////////////////////////////////////////////////////////////////////// */ +/** +* Name: defs.h +* Purpose: Declarations/definitions common to all wx source files +* Author: Julian Smart and others +* Modified by: Ryan Norton (Converted to C) +* Created: 01/02/97 +* RCS-ID: $Id$ +* Copyright: (c) +* Licence: wxWindows licence +*/ /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ @@ -24,19 +24,23 @@ #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 @@ -2012,22 +2016,22 @@ typedef unsigned short WXWORD; 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; */ @@ -2037,11 +2041,11 @@ typedef GrafPtr WXHDC; /* 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__