mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Replace all include guard ifdefs with "#pragma once"
This commit is contained in:
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _FRAMEBUFFERMANAGER_H_
|
||||
#define _FRAMEBUFFERMANAGER_H_
|
||||
#pragma once
|
||||
|
||||
#include "GLUtil.h"
|
||||
#include "FramebufferManagerBase.h"
|
||||
@ -117,5 +116,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace OGL
|
||||
|
||||
#endif
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _GLINIT_H_
|
||||
#define _GLINIT_H_
|
||||
#pragma once
|
||||
|
||||
#include "VideoConfig.h"
|
||||
#include "MathUtil.h"
|
||||
@ -40,5 +39,3 @@ __forceinline GLenum GL_REPORT_ERROR() { return GL_NO_ERROR; }
|
||||
#else
|
||||
#define DEBUG_GLSL 0
|
||||
#endif
|
||||
|
||||
#endif // _GLINIT_H_
|
||||
|
@ -2,12 +2,9 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _GLOBALS_H_
|
||||
#define _GLOBALS_H_
|
||||
#pragma once
|
||||
|
||||
#include "Common.h"
|
||||
#include "VideoConfig.h"
|
||||
|
||||
#include "VideoCommon.h"
|
||||
|
||||
#endif // _GLOBALS_H_
|
||||
|
@ -1,5 +1,4 @@
|
||||
#ifndef _PERFQUERY_H_
|
||||
#define _PERFQUERY_H_
|
||||
#pragma once
|
||||
|
||||
#include "PerfQueryBase.h"
|
||||
|
||||
@ -42,5 +41,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // _PERFQUERY_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _POSTPROCESSING_H_
|
||||
#define _POSTPROCESSING_H_
|
||||
#pragma once
|
||||
|
||||
#include "VideoCommon.h"
|
||||
#include "GLUtil.h"
|
||||
@ -28,5 +27,3 @@ void ApplyShader();
|
||||
} // namespace
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // _POSTPROCESSING_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef PROGRAM_SHADER_CACHE_H_
|
||||
#define PROGRAM_SHADER_CACHE_H_
|
||||
#pragma once
|
||||
|
||||
#include "GLUtil.h"
|
||||
|
||||
@ -112,4 +111,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace OGL
|
||||
#endif
|
||||
|
@ -2,12 +2,13 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _RASTERFONT_H_
|
||||
#define _RASTERFONT_H_
|
||||
#pragma once
|
||||
|
||||
namespace OGL {
|
||||
namespace OGL
|
||||
{
|
||||
|
||||
class RasterFont {
|
||||
class RasterFont
|
||||
{
|
||||
public:
|
||||
RasterFont();
|
||||
~RasterFont(void);
|
||||
@ -24,5 +25,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _RASTERFONT_H_
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#ifndef _RENDER_H_
|
||||
#define _RENDER_H_
|
||||
#pragma once
|
||||
|
||||
#include "RenderBase.h"
|
||||
|
||||
@ -87,5 +85,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#ifndef INCLUDE_SAMPLER_CACHE_H_
|
||||
#define INCLUDE_SAMPLER_CACHE_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
||||
@ -76,5 +74,3 @@ private:
|
||||
extern SamplerCache *g_sampler_cache;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef STREAMBUFFER_H
|
||||
#define STREAMBUFFER_H
|
||||
#pragma once
|
||||
|
||||
#include <utility>
|
||||
#include "VideoCommon.h"
|
||||
@ -51,5 +50,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // STREAMBUFFER_H
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _TEXTUREMNGR_H_
|
||||
#define _TEXTUREMNGR_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
||||
@ -64,5 +63,3 @@ private:
|
||||
bool SaveTexture(const std::string filename, u32 textarget, u32 tex, int virtual_width, int virtual_height, unsigned int level);
|
||||
|
||||
}
|
||||
|
||||
#endif // _TEXTUREMNGR_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _TEXTURECONVERTER_H_
|
||||
#define _TEXTURECONVERTER_H_
|
||||
#pragma once
|
||||
|
||||
#include "VideoCommon.h"
|
||||
#include "GLUtil.h"
|
||||
@ -30,5 +29,3 @@ int EncodeToRamFromTexture(u32 address, GLuint source_texture, bool bFromZBuffer
|
||||
}
|
||||
|
||||
} // namespace OGL
|
||||
|
||||
#endif // _TEXTURECONVERTER_H_
|
||||
|
@ -2,8 +2,7 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _VERTEXMANAGER_H_
|
||||
#define _VERTEXMANAGER_H_
|
||||
#pragma once
|
||||
|
||||
#include "CPMemory.h"
|
||||
|
||||
@ -50,5 +49,3 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _VERTEXMANAGER_H_
|
||||
|
@ -1,6 +1,4 @@
|
||||
|
||||
#ifndef OGL_VIDEO_BACKEND_H_
|
||||
#define OGL_VIDEO_BACKEND_H_
|
||||
#pragma once
|
||||
|
||||
#include "VideoBackendBase.h"
|
||||
|
||||
@ -25,5 +23,3 @@ class VideoBackend : public VideoBackendHardware
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -2,9 +2,6 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#ifndef _MAIN_H_
|
||||
#define _MAIN_H_
|
||||
#pragma once
|
||||
|
||||
#include "MainBase.h"
|
||||
|
||||
#endif // _MAIN_H_
|
||||
|
Reference in New Issue
Block a user