Clean up stdafx.h and other header includes.

#ifdef __AFX_H__ is now properly detected
This commit is contained in:
spacy51 2009-08-16 10:37:48 +00:00
parent daa8105c07
commit 9e5140e582
22 changed files with 31 additions and 24 deletions

View File

@ -1,11 +1,13 @@
// This file was written by denopqrihg // This file was written by denopqrihg
#include "../win32/stdafx.h"
#include "../win32/VBA.h"
#include "GBALink.h"
#include "GBA.h" #include "GBA.h"
#include <stdio.h> #include <stdio.h>
#include "../win32/stdafx.h"
#include "../common/port.h" #include "../common/port.h"
#include "GBALink.h"
#include "../win32/vba.h"
#include "../win32/MainWnd.h" #include "../win32/MainWnd.h"
#include "../win32/LinkOptions.h" #include "../win32/LinkOptions.h"
#include "../win32/Reg.h" #include "../win32/Reg.h"

View File

@ -27,8 +27,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h" #include "stdafx.h"
//#include "resource.h" #include "VBA.h"
#include "../System.h"
#include "AcceleratorManager.h" #include "AcceleratorManager.h"
#include "Reg.h" #include "Reg.h"

View File

@ -1,3 +1,6 @@
#include "stdafx.h"
#include "VBA.h"
#include "AudioCoreSettingsDlg.h" #include "AudioCoreSettingsDlg.h"
#define MIN_VOLUME 0.0f #define MIN_VOLUME 0.0f

View File

@ -1,10 +1,5 @@
#pragma once #pragma once
#include "stdafx.h"
#include "afxwin.h"
#include "afxcmn.h"
// AudioCoreSettingsDlg dialog // AudioCoreSettingsDlg dialog
class AudioCoreSettingsDlg : public CDialog class AudioCoreSettingsDlg : public CDialog

View File

@ -1,4 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include "BIOSDialog.h" #include "BIOSDialog.h"

View File

@ -1,5 +1,4 @@
#pragma once #pragma once
#include "afxwin.h"
// BIOSDialog dialog // BIOSDialog dialog

View File

@ -1,6 +1,9 @@
// MFC // MFC
#include "stdafx.h" #include "stdafx.h"
// Application
#include "VBA.h"
// Tools // Tools
#include "AVIWrite.h" #include "AVIWrite.h"
#include "WavWriter.h" #include "WavWriter.h"

View File

@ -1,4 +1,6 @@
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include "FullscreenSettings.h" #include "FullscreenSettings.h"

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include "afxwin.h"
#include "Display.h" #include "Display.h"

View File

@ -1,5 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "vba.h" #include "VBA.h"
#include "LangSelect.h" #include "LangSelect.h"
#ifdef _DEBUG #ifdef _DEBUG

View File

@ -1,6 +1,7 @@
#pragma once #pragma once
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
class MainWnd : public CWnd class MainWnd : public CWnd

View File

@ -1,6 +1,6 @@
#include "stdafx.h"
#ifndef NO_OAL #ifndef NO_OAL
#include "stdafx.h"
#include "VBA.h"
#include "OALConfig.h" #include "OALConfig.h"

View File

@ -1,13 +1,11 @@
#ifndef NO_OAL #ifndef NO_OAL
#pragma once #pragma once
#include "afxwin.h"
// OpenAL // OpenAL
#include <al.h> #include <al.h>
#include <alc.h> #include <alc.h>
#include "LoadOAL.h" #include "LoadOAL.h"
#include "afxcmn.h"
// OALConfig dialog // OALConfig dialog

View File

@ -1,8 +1,8 @@
// === LOGALL writes very detailed informations to vba-trace.log === // === LOGALL writes very detailed informations to vba-trace.log ===
//#define LOGALL //#define LOGALL
#include "stdafx.h"
#include "stdafx.h" // includes VBA.h for 'theApp.throttle' #include "VBA.h" // for 'theApp.throttle'
#ifndef NO_OAL #ifndef NO_OAL

View File

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include "..\gba\GBALink.h" #include "..\gba\GBALink.h"
static char buffer[2048]; static char buffer[2048];

View File

@ -5,6 +5,8 @@
#endif #endif
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include <intrin.h> #include <intrin.h>
#include "AVIWrite.h" #include "AVIWrite.h"

View File

@ -4,7 +4,6 @@
#error include 'stdafx.h' before including this file for PCH #error include 'stdafx.h' before including this file for PCH
#endif #endif
#include "stdafx.h"
#include "resource.h" #include "resource.h"
#include "AcceleratorManager.h" #include "AcceleratorManager.h"

View File

@ -3,6 +3,9 @@
// MFC // MFC
#include "stdafx.h" #include "stdafx.h"
// Application
#include "VBA.h"
// Interface // Interface
#include "../common/SoundDriver.h" #include "../common/SoundDriver.h"

View File

@ -1,6 +1,8 @@
#ifndef NO_XAUDIO2 #ifndef NO_XAUDIO2
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include "XAudio2_Config.h" #include "XAudio2_Config.h"
#include <xaudio2.h> #include <xaudio2.h>

View File

@ -1,8 +1,6 @@
#ifndef NO_XAUDIO2 #ifndef NO_XAUDIO2
#pragma once #pragma once
#include "afxwin.h"
#include "afxcmn.h"
class XAudio2_Config : public CDialog class XAudio2_Config : public CDialog

View File

@ -1,4 +1,5 @@
#include "stdafx.h" #include "stdafx.h"
#include "VBA.h"
#include "rpi.h" #include "rpi.h"
extern void SuperEagle(u8*,u32,u8*,u8*,u32,int,int); extern void SuperEagle(u8*,u32,u8*,u8*,u32,int,int);

View File

@ -25,5 +25,3 @@
#ifndef _AFX_NO_AFXCMN_SUPPORT #ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls #include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT #endif // _AFX_NO_AFXCMN_SUPPORT
#include "VBA.h" // It would be cleaner if we could leave this out