add headers

This commit is contained in:
Glenn Maynard
2003-11-14 17:17:36 +00:00
parent 682789980c
commit b72d42361a
16 changed files with 27 additions and 5 deletions
+4
View File
@@ -20,6 +20,10 @@
#include "SongManager.h" #include "SongManager.h"
#include "GameState.h" #include "GameState.h"
#ifdef _WINDOWS
#include "windows.h"
#endif
ProfileManager* PROFILEMAN = NULL; // global and accessable from anywhere in our program ProfileManager* PROFILEMAN = NULL; // global and accessable from anywhere in our program
+3
View File
@@ -19,6 +19,9 @@
#include "RageFile.h" #include "RageFile.h"
#include <time.h> #include <time.h>
#include "ProductInfo.h" #include "ProductInfo.h"
#if defined(WIN32) && !defined(_XBOX)
#include "windows.h"
#endif
RageLog* LOG; // global and accessable from anywhere in the program RageLog* LOG; // global and accessable from anywhere in the program
+1
View File
@@ -147,6 +147,7 @@ CString vssprintf( const char *fmt, va_list argList)
} }
#ifdef WIN32 #ifdef WIN32
#include "windows.h"
#ifdef _XBOX #ifdef _XBOX
#include "D3DX8Core.h" #include "D3DX8Core.h"
#else #else
@@ -6,6 +6,8 @@
#if defined(_WINDOWS) #if defined(_WINDOWS)
#include "windows.h"
/* Convert from the given codepage to UTF-8. Return true if successful. */ /* Convert from the given codepage to UTF-8. Return true if successful. */
static bool CodePageConvert(CString &txt, int cp) static bool CodePageConvert(CString &txt, int cp)
{ {
+2
View File
@@ -15,6 +15,8 @@
#if !defined(WIN32) #if !defined(WIN32)
#include <dirent.h> #include <dirent.h>
#include <fcntl.h> #include <fcntl.h>
#else
#include "windows.h"
#endif #endif
+1
View File
@@ -22,6 +22,7 @@ void SaveGamePrefsToDisk();
void ChangeCurrentGame( Game g ); void ChangeCurrentGame( Game g );
#if defined(WIN32) #if defined(WIN32)
#include "windows.h"
extern HWND g_hWndMain; extern HWND g_hWndMain;
#endif #endif
@@ -3,6 +3,7 @@
#include "../../RageUtil.h" #include "../../RageUtil.h"
#include "../../RageLog.h" #include "../../RageLog.h"
#include <mmsystem.h>
#define DIRECTSOUND_VERSION 0x0700 #define DIRECTSOUND_VERSION 0x0700
#include <dsound.h> #include <dsound.h>
+1
View File
@@ -2,6 +2,7 @@
#define DSOUND_HELPERS 1 #define DSOUND_HELPERS 1
#include "SDL.h" #include "SDL.h"
#include "windows.h"
struct IDirectSound; struct IDirectSound;
struct IDirectSoundBuffer; struct IDirectSoundBuffer;
@@ -3,6 +3,7 @@
#include "RageSoundDriver.h" #include "RageSoundDriver.h"
#include "RageThreads.h" #include "RageThreads.h"
#include "windows.h"
#include "Mmsystem.h" #include "Mmsystem.h"
class RageSound_WaveOut: public RageSoundDriver class RageSound_WaveOut: public RageSoundDriver
@@ -1,6 +1,8 @@
#ifndef APP_INSTANCE_H #ifndef APP_INSTANCE_H
#define APP_INSTANCE_H #define APP_INSTANCE_H
#include "windows.h"
/* Win32 only: get an HINSTANCE; used for starting dialog boxes. */ /* Win32 only: get an HINSTANCE; used for starting dialog boxes. */
class AppInstance class AppInstance
{ {
@@ -3,6 +3,8 @@
#include "RageLog.h" #include "RageLog.h"
#include "RageUtil.h" #include "RageUtil.h"
#include "VideoDriverInfo.h" #include "VideoDriverInfo.h"
#include "windows.h"
#include <mmsystem.h>
void LogVideoDriverInfo( VideoDriverInfo info ) void LogVideoDriverInfo( VideoDriverInfo info )
+4 -2
View File
@@ -1,5 +1,7 @@
#include "global.h" #include "global.h"
#include "GotoURL.h" #include "GotoURL.h"
#include "windows.h"
#include "shellapi.h"
LONG GetRegKey(HKEY key, CString subkey, LPTSTR retdata) LONG GetRegKey(HKEY key, CString subkey, LPTSTR retdata)
{ {
@@ -37,11 +39,11 @@ bool GotoURL(CString url)
if (GetRegKey(HKEY_CLASSES_ROOT,key,key) != ERROR_SUCCESS) if (GetRegKey(HKEY_CLASSES_ROOT,key,key) != ERROR_SUCCESS)
return false; return false;
char *pos = _tcsstr(key, "\"%1\""); char *pos = strstr( key, "\"%1\"" );
if (pos == NULL) if (pos == NULL)
{ {
// No quotes found. Check for %1 without quotes // No quotes found. Check for %1 without quotes
pos = strstr(key, _T("%1")); pos = strstr( key, "%1" );
if (pos == NULL) if (pos == NULL)
pos = key+lstrlen(key)-1; // No parameter. pos = key+lstrlen(key)-1; // No parameter.
else else
@@ -1,5 +1,6 @@
#include "global.h" #include "global.h"
#include "RestartProgram.h" #include "RestartProgram.h"
#include "windows.h"
void Win32RestartProgram() void Win32RestartProgram()
{ {
-3
View File
@@ -9,10 +9,7 @@
extern "C" { extern "C" {
#include "ddk/setupapi.h" #include "ddk/setupapi.h"
/* Quiet header warning: */ /* Quiet header warning: */
#pragma warning( push )
#pragma warning (disable : 4201)
#include "ddk/hidsdi.h" #include "ddk/hidsdi.h"
#pragma warning( pop )
} }
static CString GetUSBDevicePath (int num) static CString GetUSBDevicePath (int num)
+1
View File
@@ -2,6 +2,7 @@
#define WIN32_USB_H #define WIN32_USB_H
#include <vector> #include <vector>
#include "windows.h"
/* The API for Windows device I/O is obscenely horrible, so encapsulate it. */ /* The API for Windows device I/O is obscenely horrible, so encapsulate it. */
class WindowsFileIO class WindowsFileIO
@@ -2,6 +2,7 @@
#include "VideoDriverInfo.h" #include "VideoDriverInfo.h"
#include "RageUtil.h" #include "RageUtil.h"
#include "RageLog.h" #include "RageLog.h"
#include "windows.h"
static void GetRegSubKeys( HKEY hKey, vector<CString> &lst ) static void GetRegSubKeys( HKEY hKey, vector<CString> &lst )
{ {