Replace all include guard ifdefs with "#pragma once"

This commit is contained in:
lioncash
2014-02-10 13:54:46 -05:00
committed by Lioncash
parent a0a65a2906
commit d2038049f5
462 changed files with 676 additions and 2308 deletions

View File

@ -1,19 +1,6 @@
// Copyright (C) 2003 Dolphin Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "Android.h"

View File

@ -1,21 +1,8 @@
// Copyright (C) 2003 Dolphin Project.
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#ifndef _CIFACE_ANDROID_H_
#define _CIFACE_ANDROID_H_
#pragma once
#include "../Device.h"
#include "Android/ButtonManager.h"
@ -67,5 +54,3 @@ private:
}
}
#endif

View File

@ -1,3 +1,7 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "ControllerInterface.h"
#if USE_EGL

View File

@ -1,5 +1,8 @@
#ifndef _DEVICEINTERFACE_H_
#define _DEVICEINTERFACE_H_
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <vector>
#include <string>
@ -129,5 +132,3 @@ private:
};
extern ControllerInterface g_controller_interface;
#endif

View File

@ -1,3 +1,6 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "DInput.h"

View File

@ -1,5 +1,8 @@
#ifndef _CIFACE_DINPUT_H_
#define _CIFACE_DINPUT_H_
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "../Device.h"
@ -27,5 +30,3 @@ void Init(std::vector<Core::Device*>& devices, HWND hwnd);
}
}
#endif

View File

@ -1,3 +1,6 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "DInputJoystick.h"
#include "DInput.h"

View File

@ -1,5 +1,8 @@
#ifndef _CIFACE_DINPUT_JOYSTICK_H_
#define _CIFACE_DINPUT_JOYSTICK_H_
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "../Device.h"
#include "../ForceFeedback/ForceFeedbackDevice.h"
@ -71,5 +74,3 @@ private:
}
}
#endif

View File

@ -1,3 +1,6 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "DInputKeyboardMouse.h"
#include "DInput.h"

View File

@ -1,5 +1,8 @@
#ifndef _CIFACE_DINPUT_KBM_H_
#define _CIFACE_DINPUT_KBM_H_
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "../Device.h"
@ -109,5 +112,3 @@ private:
}
}
#endif

View File

@ -1,3 +1,6 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "Device.h"

View File

@ -1,6 +1,8 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _DEVICE_H_
#define _DEVICE_H_
#pragma once
#include <string>
#include <vector>
@ -167,5 +169,3 @@ protected:
}
}
#endif

View File

@ -1,3 +1,6 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "ExpressionParser.h"

View File

@ -1,6 +1,8 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _EXPRESSIONPARSER_H_
#define _EXPRESSIONPARSER_H_
#pragma once
#include <string>
#include "Device.h"
@ -65,5 +67,3 @@ ExpressionParseStatus ParseExpression(std::string expr, ControlFinder &finder, E
}
}
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _FORCEFEEDBACKDEVICE_H_
#define _FORCEFEEDBACKDEVICE_H_
#pragma once
#include "../Device.h"
@ -65,5 +64,3 @@ private:
}
}
#endif

View File

@ -10,8 +10,7 @@
* for these differences on OS X.
*/
#ifndef _DIRECTINPUTADAPTER_H_
#define _DIRECTINPUTADAPTER_H_
#pragma once
typedef LONG* LPLONG; // Missing type for ForceFeedback.h
#include <CoreFoundation/CoreFoundation.h>
@ -217,8 +216,5 @@ public:
}
};
}
}
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _DIRECTINPUTCONSTANTS_H_
#define _DIRECTINPUTCONSTANTS_H_
#pragma once
/*
* Define all constants from ForceFeedbackConstants.h with DirectInput prefixes.
@ -146,5 +145,3 @@
#define DIGFFS_USERFFSWITCHON FFGFFS_USERFFSWITCHON
#define DIGFFS_USERFFSWITCHOFF FFGFFS_USERFFSWITCHOFF
#define DIGFFS_DEVICELOST FFGFFS_DEVICELOST
#endif

View File

@ -1,3 +1,7 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "../Device.h"

View File

@ -1,3 +1,7 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <Foundation/Foundation.h>
#include <IOKit/hid/IOHIDLib.h>
#include <Cocoa/Cocoa.h>

View File

@ -1,3 +1,9 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <IOKit/hid/IOHIDLib.h>
#include "../Device.h"

View File

@ -1,3 +1,7 @@
// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <Foundation/Foundation.h>
#include <IOKit/hid/IOHIDLib.h>

View File

@ -1,3 +1,9 @@
// Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include <IOKit/hid/IOHIDLib.h>
#include "../Device.h"

View File

@ -1,3 +1,7 @@
// Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <Foundation/Foundation.h>
#include <IOKit/hid/IOHIDLib.h>
#include <Cocoa/Cocoa.h>

View File

@ -1,3 +1,6 @@
// Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "SDL.h"
#include <StringUtil.h>

View File

@ -1,5 +1,8 @@
#ifndef _CIFACE_SDL_H_
#define _CIFACE_SDL_H_
// Copyright 2014 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
#include "../Device.h"
@ -153,5 +156,3 @@ private:
}
}
#endif

View File

@ -3,8 +3,7 @@
// compile against the latest version and fall back to dynamically loading the
// old DLL.
#ifndef _CIFACE_XINPUT_H_
#define _CIFACE_XINPUT_H_
#pragma once
#include "../Device.h"
@ -96,6 +95,3 @@ private:
}
}
#endif

View File

@ -4,8 +4,7 @@
// See XInput2.cpp for extensive documentation.
#ifndef _CIFACE_X11_XINPUT2_H_
#define _CIFACE_X11_XINPUT2_H_
#pragma once
#include "../Device.h"
@ -120,5 +119,3 @@ private:
}
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef _CIFACE_XLIB_H_
#define _CIFACE_XLIB_H_
#pragma once
#include "../Device.h"
@ -89,5 +88,3 @@ private:
}
}
#endif