From: Vadim Zeitlin Date: Tue, 7 Aug 2007 20:33:48 +0000 (+0000) Subject: don't include wx/wxprec.h from headers, it's bad style (patch from Tim Stahlhut) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d36417da1b3c2e5d2ad051b3c4603e96e0f7c2f?ds=sidebyside;hp=1e990633f84df0394247635173aa58a7d59f2b5c don't include wx/wxprec.h from headers, it's bad style (patch from Tim Stahlhut) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/life/dialogs.h b/demos/life/dialogs.h index 060eb67472..5a44246c90 100644 --- a/demos/life/dialogs.h +++ b/demos/life/dialogs.h @@ -12,18 +12,6 @@ #ifndef _LIFE_DIALOGS_H_ #define _LIFE_DIALOGS_H_ -// for compilers that support precompilation, includes "wx/wx.h" -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -// for all others, include the necessary headers -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - #include "life.h" #include "game.h" diff --git a/demos/life/game.h b/demos/life/game.h index 0a4860f100..2b5b548f0e 100644 --- a/demos/life/game.h +++ b/demos/life/game.h @@ -12,18 +12,6 @@ #ifndef _LIFE_GAME_H_ #define _LIFE_GAME_H_ -// for compilers that support precompilation, includes "wx/wx.h" -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -// for all others, include the necessary headers -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - // -------------------------------------------------------------------------- // LifePattern // -------------------------------------------------------------------------- diff --git a/demos/life/life.h b/demos/life/life.h index ea0007d77a..dd36aebe39 100644 --- a/demos/life/life.h +++ b/demos/life/life.h @@ -12,18 +12,6 @@ #ifndef _LIFE_APP_H_ #define _LIFE_APP_H_ -// for compilers that support precompilation, includes "wx/wx.h" -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -// for all others, include the necessary headers -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - #include "wx/minifram.h" #include "game.h" diff --git a/demos/life/reader.h b/demos/life/reader.h index fc1f397125..add8ce72ed 100644 --- a/demos/life/reader.h +++ b/demos/life/reader.h @@ -12,18 +12,6 @@ #ifndef _LIFE_READER_H_ #define _LIFE_READER_H_ -// for compilers that support precompilation, includes "wx/wx.h" -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -// for all others, include the necessary headers -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - #include "game.h" // -------------------------------------------------------------------------- diff --git a/samples/widgets/itemcontainer.h b/samples/widgets/itemcontainer.h index baa1982bb8..8f25d70a17 100644 --- a/samples/widgets/itemcontainer.h +++ b/samples/widgets/itemcontainer.h @@ -10,9 +10,6 @@ #ifndef _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_ #define _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_ -// for compilers that support precompilation, includes "wx/wx.h". -#include "wx/wxprec.h" - #include "widgets.h" // define a common base class for sorted and normal string arrays