From a915a510bd804fef409d76ed3ff8e8698e6ec60b Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 23 Mar 2019 14:28:37 -0400 Subject: [PATCH] include in all files where wxUSE* macros are used... ... even if it's redundant; improving on what was done at b47e2f9 --- src/AdornedRulerPanel.cpp | 1 + src/AudacityApp.cpp | 1 + src/BatchProcessDialog.cpp | 1 + src/CellularPanel.cpp | 1 + src/Experimental.h | 14 ++++++++------ src/FreqWindow.cpp | 2 ++ src/MixerBoard.cpp | 2 ++ src/PluginManager.cpp | 1 + src/Project.cpp | 3 +++ src/ShuttleGui.cpp | 1 + src/Tags.cpp | 2 ++ src/TimerRecordDialog.cpp | 2 ++ src/TrackPanel.cpp | 2 ++ src/TrackPanel.h | 2 +- src/TrackPanelAx.cpp | 2 ++ src/TrackPanelAx.h | 2 +- src/effects/Equalization.cpp | 2 ++ src/effects/Equalization.h | 2 +- src/effects/Equalization48x.cpp | 2 ++ src/effects/ScienFilter.cpp | 2 ++ src/effects/ScienFilter.h | 3 ++- src/effects/VST/VSTEffect.cpp | 1 + src/effects/ladspa/LadspaEffect.cpp | 1 + src/prefs/KeyConfigPrefs.cpp | 1 + src/prefs/PrefsDialog.cpp | 1 + src/toolbars/ControlToolBar.cpp | 2 ++ src/toolbars/DeviceToolBar.cpp | 2 ++ src/toolbars/EditToolBar.cpp | 2 ++ src/toolbars/MeterToolBar.cpp | 2 ++ src/toolbars/ScrubbingToolBar.cpp | 2 ++ src/toolbars/SelectionBar.cpp | 2 ++ src/toolbars/SpectralSelectionBar.cpp | 2 ++ src/toolbars/ToolBar.cpp | 2 ++ src/toolbars/ToolsToolBar.cpp | 2 ++ src/widgets/AButton.cpp | 2 ++ src/widgets/AButton.h | 2 +- src/widgets/ASlider.cpp | 1 + src/widgets/ASlider.h | 3 ++- src/widgets/Grid.cpp | 2 ++ src/widgets/Grid.h | 3 ++- src/widgets/HelpSystem.cpp | 1 + src/widgets/HtmlWindow.cpp | 1 + src/widgets/HtmlWindow.h | 3 ++- src/widgets/KeyView.cpp | 1 + src/widgets/KeyView.h | 3 ++- src/widgets/Meter.cpp | 1 + src/widgets/Meter.h | 3 ++- src/widgets/NumericTextCtrl.cpp | 2 ++ src/widgets/NumericTextCtrl.h | 3 ++- src/widgets/WindowAccessible.cpp | 1 + src/widgets/WindowAccessible.h | 3 +-- src/widgets/numformatter.cpp | 2 ++ src/widgets/valnum.cpp | 2 ++ src/widgets/valnum.h | 1 + 54 files changed, 93 insertions(+), 19 deletions(-) diff --git a/src/AdornedRulerPanel.cpp b/src/AdornedRulerPanel.cpp index 0497bacb3..d2c48b991 100644 --- a/src/AdornedRulerPanel.cpp +++ b/src/AdornedRulerPanel.cpp @@ -23,6 +23,7 @@ #include "Experimental.h" +#include // for wxUSE_* macros #include #include "AColor.h" diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 7baeb6267..33cf56a01 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -28,6 +28,7 @@ It handles initialization and termination by subclassing wxApp. #include "TranslatableStringArray.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/BatchProcessDialog.cpp b/src/BatchProcessDialog.cpp index 850536e86..85e505581 100644 --- a/src/BatchProcessDialog.cpp +++ b/src/BatchProcessDialog.cpp @@ -17,6 +17,7 @@ #include "Audacity.h" #include "BatchProcessDialog.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/CellularPanel.cpp b/src/CellularPanel.cpp index 477dae532..5282b4ea7 100644 --- a/src/CellularPanel.cpp +++ b/src/CellularPanel.cpp @@ -30,6 +30,7 @@ #include "Audacity.h" #include "CellularPanel.h" +#include // for wxUSE_* macros #include "Project.h" #include "UIHandle.h" #include "TrackPanelCell.h" diff --git a/src/Experimental.h b/src/Experimental.h index 3adaaa182..36d9c0ba3 100644 --- a/src/Experimental.h +++ b/src/Experimental.h @@ -219,12 +219,14 @@ #define EXPERIMENTAL_TWO_TONE_TIME_RULER #ifndef IN_RC -// Define to include crash reporting -#include -#define EXPERIMENTAL_CRASH_REPORT -#if !defined(wxUSE_DEBUGREPORT) || !wxUSE_DEBUGREPORT -#undef EXPERIMENTAL_CRASH_REPORT -#endif + // Define to include crash reporting + #define EXPERIMENTAL_CRASH_REPORT + #ifdef EXPERIMENTAL_CRASH_REPORT + #include // for wxUSE* macros + #if !defined(wxUSE_DEBUGREPORT) || !wxUSE_DEBUGREPORT + #undef EXPERIMENTAL_CRASH_REPORT + #endif + #endif #endif // Paul Licameli (PRL) 31 May 2015 diff --git a/src/FreqWindow.cpp b/src/FreqWindow.cpp index 96e41eddf..c9cac1c26 100644 --- a/src/FreqWindow.cpp +++ b/src/FreqWindow.cpp @@ -45,6 +45,8 @@ and in the spectrogram spectral selection. #include +#include // for wxUSE_* macros + #include #include #include diff --git a/src/MixerBoard.cpp b/src/MixerBoard.cpp index 9a09d136a..ee7025a78 100644 --- a/src/MixerBoard.cpp +++ b/src/MixerBoard.cpp @@ -19,6 +19,8 @@ #include #include +#include // for wxUSE_* macros + #include #include #include // for wxSystemSettings::GetColour and wxSystemSettings::GetMetric diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp index 29ffb6d50..2f7ba5bbb 100644 --- a/src/PluginManager.cpp +++ b/src/PluginManager.cpp @@ -25,6 +25,7 @@ for shared and private configs - which need to move out. #include +#include // for wxUSE_* macros #include #include #include diff --git a/src/Project.cpp b/src/Project.cpp index 3acaa76a6..ef77390a1 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -56,6 +56,9 @@ scroll information. It also has some status flags. #include #include #include + +#include // for wxUSE_* macros + #include #include diff --git a/src/ShuttleGui.cpp b/src/ShuttleGui.cpp index e2725fa5a..b80af7e40 100644 --- a/src/ShuttleGui.cpp +++ b/src/ShuttleGui.cpp @@ -102,6 +102,7 @@ for registering for changes. #include "Shuttle.h" #include "MemoryX.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/Tags.cpp b/src/Tags.cpp index cc1ea3130..fccee0db4 100644 --- a/src/Tags.cpp +++ b/src/Tags.cpp @@ -36,6 +36,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP // Include your minimal set of headers here, or wx.h #include diff --git a/src/TimerRecordDialog.cpp b/src/TimerRecordDialog.cpp index 5565f34b7..bc56daf73 100644 --- a/src/TimerRecordDialog.cpp +++ b/src/TimerRecordDialog.cpp @@ -23,6 +23,8 @@ #include "FileNames.h" +#include // for wxUSE_* macros + #include #include #include diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 0c8bcb716..2bad1fe53 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -63,6 +63,8 @@ is time to refresh some aspect of the screen. #include "Audacity.h" // for USE_* macros #include "TrackPanel.h" +#include // for wxUSE_* macros + #include "Experimental.h" #include "AdornedRulerPanel.h" diff --git a/src/TrackPanel.h b/src/TrackPanel.h index e2d625037..41cc7ad95 100644 --- a/src/TrackPanel.h +++ b/src/TrackPanel.h @@ -17,7 +17,7 @@ #include "MemoryX.h" #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros #include #include "HitTestResult.h" diff --git a/src/TrackPanelAx.cpp b/src/TrackPanelAx.cpp index fbf9cca4d..f3b5d5135 100644 --- a/src/TrackPanelAx.cpp +++ b/src/TrackPanelAx.cpp @@ -20,6 +20,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP // Include your minimal set of headers here, or wx.h #include diff --git a/src/TrackPanelAx.h b/src/TrackPanelAx.h index a9ac8de68..f755575a0 100644 --- a/src/TrackPanelAx.h +++ b/src/TrackPanelAx.h @@ -15,7 +15,7 @@ #include #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros #if wxUSE_ACCESSIBILITY #include diff --git a/src/effects/Equalization.cpp b/src/effects/Equalization.cpp index e7ac01481..2c0a6f9ac 100644 --- a/src/effects/Equalization.cpp +++ b/src/effects/Equalization.cpp @@ -60,6 +60,8 @@ #include #include +#include // for wxUSE_* macros + #include #include #include diff --git a/src/effects/Equalization.h b/src/effects/Equalization.h index 4dd9c974c..04c5183b5 100644 --- a/src/effects/Equalization.h +++ b/src/effects/Equalization.h @@ -18,7 +18,7 @@ #define PANELBORDER 1 // only increase from '1' for testing purposes - MJS #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros #include #include #include diff --git a/src/effects/Equalization48x.cpp b/src/effects/Equalization48x.cpp index dfeb07fc0..bb4a30de0 100644 --- a/src/effects/Equalization48x.cpp +++ b/src/effects/Equalization48x.cpp @@ -26,6 +26,8 @@ #include "../float_cast.h" #include +#include // for wxUSE_* macros + #include #include #include diff --git a/src/effects/ScienFilter.cpp b/src/effects/ScienFilter.cpp index 3576586d2..1fc720efd 100644 --- a/src/effects/ScienFilter.cpp +++ b/src/effects/ScienFilter.cpp @@ -38,6 +38,8 @@ a graph for EffectScienFilter. #include #include +#include // for wxUSE_* macros + #include #include #include diff --git a/src/effects/ScienFilter.h b/src/effects/ScienFilter.h index b143049c1..c2df7fccc 100644 --- a/src/effects/ScienFilter.h +++ b/src/effects/ScienFilter.h @@ -13,10 +13,11 @@ Vaughan Johnson (Preview) #ifndef __AUDACITY_EFFECT_SCIENFILTER__ #define __AUDACITY_EFFECT_SCIENFILTER__ +#include // for wxUSE_* macros + #include #include #include -#include // for wxUSE_ACCESSIBILITY #include #include #include diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index 98b66a58e..717b58905 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -42,6 +42,7 @@ #include #include +#include // for wxUSE_* macros #include #include #include diff --git a/src/effects/ladspa/LadspaEffect.cpp b/src/effects/ladspa/LadspaEffect.cpp index 45ab4b92d..6af4b5893 100644 --- a/src/effects/ladspa/LadspaEffect.cpp +++ b/src/effects/ladspa/LadspaEffect.cpp @@ -29,6 +29,7 @@ effects from this one class. #include +#include // for wxUSE_* macros #include #include #include diff --git a/src/prefs/KeyConfigPrefs.cpp b/src/prefs/KeyConfigPrefs.cpp index e8a0b7138..272a92c3e 100644 --- a/src/prefs/KeyConfigPrefs.cpp +++ b/src/prefs/KeyConfigPrefs.cpp @@ -23,6 +23,7 @@ KeyConfigPrefs and MousePrefs use. #include "KeyConfigPrefs.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/prefs/PrefsDialog.cpp b/src/prefs/PrefsDialog.cpp index 74d92a6be..2b22e0b4f 100644 --- a/src/prefs/PrefsDialog.cpp +++ b/src/prefs/PrefsDialog.cpp @@ -19,6 +19,7 @@ #include "../Experimental.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/toolbars/ControlToolBar.cpp b/src/toolbars/ControlToolBar.cpp index e71c952f1..9733a5ec6 100644 --- a/src/toolbars/ControlToolBar.cpp +++ b/src/toolbars/ControlToolBar.cpp @@ -43,6 +43,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/DeviceToolBar.cpp b/src/toolbars/DeviceToolBar.cpp index 37b45faec..529d945f4 100644 --- a/src/toolbars/DeviceToolBar.cpp +++ b/src/toolbars/DeviceToolBar.cpp @@ -20,6 +20,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/EditToolBar.cpp b/src/toolbars/EditToolBar.cpp index c8a2b2ebf..b09ab5083 100644 --- a/src/toolbars/EditToolBar.cpp +++ b/src/toolbars/EditToolBar.cpp @@ -39,6 +39,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/MeterToolBar.cpp b/src/toolbars/MeterToolBar.cpp index e6bc5ea85..b8c67c3cb 100644 --- a/src/toolbars/MeterToolBar.cpp +++ b/src/toolbars/MeterToolBar.cpp @@ -23,6 +23,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/ScrubbingToolBar.cpp b/src/toolbars/ScrubbingToolBar.cpp index b602f4974..02bbdcfb0 100644 --- a/src/toolbars/ScrubbingToolBar.cpp +++ b/src/toolbars/ScrubbingToolBar.cpp @@ -19,6 +19,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/SelectionBar.cpp b/src/toolbars/SelectionBar.cpp index a3a8b2470..346508b2d 100644 --- a/src/toolbars/SelectionBar.cpp +++ b/src/toolbars/SelectionBar.cpp @@ -33,6 +33,8 @@ with changes in the SelectionBar. // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/SpectralSelectionBar.cpp b/src/toolbars/SpectralSelectionBar.cpp index a38860cd7..f295951a8 100644 --- a/src/toolbars/SpectralSelectionBar.cpp +++ b/src/toolbars/SpectralSelectionBar.cpp @@ -38,6 +38,8 @@ with changes in the SpectralSelectionBar. // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/ToolBar.cpp b/src/toolbars/ToolBar.cpp index da3a9293d..a3544a1ec 100644 --- a/src/toolbars/ToolBar.cpp +++ b/src/toolbars/ToolBar.cpp @@ -32,6 +32,8 @@ in which buttons can be placed. // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/toolbars/ToolsToolBar.cpp b/src/toolbars/ToolsToolBar.cpp index a3eedebf1..c16744f79 100644 --- a/src/toolbars/ToolsToolBar.cpp +++ b/src/toolbars/ToolsToolBar.cpp @@ -38,6 +38,8 @@ // For compilers that support precompilation, includes "wx/wx.h". #include +#include // for wxUSE_* macros + #ifndef WX_PRECOMP #include #include diff --git a/src/widgets/AButton.cpp b/src/widgets/AButton.cpp index b7d587965..f4a4f20dd 100644 --- a/src/widgets/AButton.cpp +++ b/src/widgets/AButton.cpp @@ -26,6 +26,8 @@ #include "../AColor.h" +#include // for wxUSE_* macros + #include #include #include diff --git a/src/widgets/AButton.h b/src/widgets/AButton.h index 90d199241..48680ab06 100644 --- a/src/widgets/AButton.h +++ b/src/widgets/AButton.h @@ -15,7 +15,7 @@ #include "../MemoryX.h" #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros #if wxUSE_ACCESSIBILITY #include diff --git a/src/widgets/ASlider.cpp b/src/widgets/ASlider.cpp index 4755e66c6..85455dd9f 100644 --- a/src/widgets/ASlider.cpp +++ b/src/widgets/ASlider.cpp @@ -36,6 +36,7 @@ or ASlider. #include +#include // for wxUSE_* macros #include #include #include diff --git a/src/widgets/ASlider.h b/src/widgets/ASlider.h index b5d10d6ba..8d8b9450d 100644 --- a/src/widgets/ASlider.h +++ b/src/widgets/ASlider.h @@ -14,7 +14,8 @@ #define __AUDACITY_SLIDER__ #include "../MemoryX.h" -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros +#include #include #include #include diff --git a/src/widgets/Grid.cpp b/src/widgets/Grid.cpp index 42b610a5e..43e47f20d 100644 --- a/src/widgets/Grid.cpp +++ b/src/widgets/Grid.cpp @@ -16,6 +16,8 @@ #include "../Audacity.h" #include "Grid.h" +#include // for wxUSE_* macros + #include #include #include diff --git a/src/widgets/Grid.h b/src/widgets/Grid.h index 96a0c16cf..51645a413 100644 --- a/src/widgets/Grid.h +++ b/src/widgets/Grid.h @@ -13,7 +13,8 @@ #include "../MemoryX.h" #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros +#include #include #include #include diff --git a/src/widgets/HelpSystem.cpp b/src/widgets/HelpSystem.cpp index 00ad01ab9..2a77d59a4 100644 --- a/src/widgets/HelpSystem.cpp +++ b/src/widgets/HelpSystem.cpp @@ -15,6 +15,7 @@ #include "../Experimental.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/widgets/HtmlWindow.cpp b/src/widgets/HtmlWindow.cpp index 81d40773f..87017c942 100644 --- a/src/widgets/HtmlWindow.cpp +++ b/src/widgets/HtmlWindow.cpp @@ -23,6 +23,7 @@ around to NEW positions. #include "../Audacity.h" #include "HtmlWindow.h" +#include // for wxUSE_* macros #include //////////////////////////////////////////////////////////// diff --git a/src/widgets/HtmlWindow.h b/src/widgets/HtmlWindow.h index ab1d44a4e..8542dc627 100644 --- a/src/widgets/HtmlWindow.h +++ b/src/widgets/HtmlWindow.h @@ -25,7 +25,8 @@ around to NEW positions. #include "../Audacity.h" -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros +#include #include #if wxUSE_ACCESSIBILITY diff --git a/src/widgets/KeyView.cpp b/src/widgets/KeyView.cpp index 3eda2a51f..de4cd9b2f 100644 --- a/src/widgets/KeyView.cpp +++ b/src/widgets/KeyView.cpp @@ -14,6 +14,7 @@ #include "../Audacity.h" #include "KeyView.h" +#include // for wxUSE_* macros #include #include #include diff --git a/src/widgets/KeyView.h b/src/widgets/KeyView.h index b798bfa43..88ab015f3 100644 --- a/src/widgets/KeyView.h +++ b/src/widgets/KeyView.h @@ -13,7 +13,8 @@ #include "audacity/Types.h" #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros +#include #include #include #include diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp index edebfe6fd..b89666460 100644 --- a/src/widgets/Meter.cpp +++ b/src/widgets/Meter.cpp @@ -44,6 +44,7 @@ #include "../Experimental.h" #include +#include // for wxUSE_* macros #include #include #include diff --git a/src/widgets/Meter.h b/src/widgets/Meter.h index 875ad95df..e2e5c779f 100644 --- a/src/widgets/Meter.h +++ b/src/widgets/Meter.h @@ -16,8 +16,9 @@ #ifndef __AUDACITY_METER__ #define __AUDACITY_METER__ +#include // for wxUSE_* macros #include -#include // for wxUSE_ACCESSIBILITY +#include #include #include #include diff --git a/src/widgets/NumericTextCtrl.cpp b/src/widgets/NumericTextCtrl.cpp index 45f15e02c..3f7f9a624 100644 --- a/src/widgets/NumericTextCtrl.cpp +++ b/src/widgets/NumericTextCtrl.cpp @@ -179,6 +179,8 @@ different formats. #include #include +#include // for wxUSE_* macros + #include #include #include diff --git a/src/widgets/NumericTextCtrl.h b/src/widgets/NumericTextCtrl.h index 8df179019..2a1ebf44b 100644 --- a/src/widgets/NumericTextCtrl.h +++ b/src/widgets/NumericTextCtrl.h @@ -20,7 +20,8 @@ #include "../MemoryX.h" #include "../../include/audacity/ComponentInterface.h" #include -#include // for wxUSE_ACCESSIBILITY +#include // for wxUSE_* macros +#include #include #include #include diff --git a/src/widgets/WindowAccessible.cpp b/src/widgets/WindowAccessible.cpp index 74b928aa1..7f379541a 100644 --- a/src/widgets/WindowAccessible.cpp +++ b/src/widgets/WindowAccessible.cpp @@ -16,6 +16,7 @@ contained GetParent() which was incorrect. #include "WindowAccessible.h" +#include // for wxUSE_* macros #include #if wxUSE_ACCESSIBILITY diff --git a/src/widgets/WindowAccessible.h b/src/widgets/WindowAccessible.h index cef09d8e4..4984352ef 100644 --- a/src/widgets/WindowAccessible.h +++ b/src/widgets/WindowAccessible.h @@ -11,8 +11,7 @@ #ifndef __AUDACITY_WINDOW_ACCESSIBLE__ #define __AUDACITY_WINDOW_ACCESSIBLE__ -#include // for wxUSE_ACCESSIBILITY -#include +#include // for wxUSE_* macros #if wxUSE_ACCESSIBILITY diff --git a/src/widgets/numformatter.cpp b/src/widgets/numformatter.cpp index 71d2375fb..68ce424e6 100644 --- a/src/widgets/numformatter.cpp +++ b/src/widgets/numformatter.cpp @@ -21,6 +21,8 @@ // For compilers that support precompilation, includes "wx.h". #include +#include // for wxUSE_* macros + #ifdef __BORLANDC__ #pragma hdrstop #endif diff --git a/src/widgets/valnum.cpp b/src/widgets/valnum.cpp index 2474d8ba2..90ea3895e 100644 --- a/src/widgets/valnum.cpp +++ b/src/widgets/valnum.cpp @@ -25,6 +25,8 @@ // For compilers that support precompilation, includes "wx.h". #include +#include // for wxUSE_* macros + #include "ErrorDialog.h" #ifdef __BORLANDC__ diff --git a/src/widgets/valnum.h b/src/widgets/valnum.h index 034fcdf47..f54599f52 100644 --- a/src/widgets/valnum.h +++ b/src/widgets/valnum.h @@ -12,6 +12,7 @@ #define _WIDGETS_VALNUM_H_ #include "../MemoryX.h" +#include // for wxUSE_* macros #include #if wxUSE_VALIDATORS