Changed lingering header include guards to pragma once.

Some headers where using #ifndef to guard being including multiple times. But most were using pragma once. So for consistency I changed them all to use pragma once.
This commit is contained in:
Matthew Brennan Jones
2014-07-01 22:17:33 -07:00
parent aec4cc7e29
commit 124210c50f
3 changed files with 4 additions and 12 deletions

View File

@ -15,10 +15,9 @@
// * don't set POLLIN or POLLOUT in revents if it wasn't requested // * don't set POLLIN or POLLOUT in revents if it wasn't requested
// in events (only happens when an fd is in the poll set twice) // in events (only happens when an fd is in the poll set twice)
#if (_WIN32_WINNT < _WIN32_WINNT_VISTA) #pragma once
#ifndef _FAKE_POLL_H #if (_WIN32_WINNT < _WIN32_WINNT_VISTA)
#define _FAKE_POLL_H
#include <limits.h> #include <limits.h>
#include <sys/types.h> #include <sys/types.h>
@ -158,8 +157,6 @@ inline int poll(struct pollfd *pollSet, int pollCount, int pollTimeout)
return result; return result;
} }
#endif
#else // (_WIN32_WINNT < _WIN32_WINNT_VISTA) #else // (_WIN32_WINNT < _WIN32_WINNT_VISTA)
typedef pollfd pollfd_t; typedef pollfd pollfd_t;

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef JITIL_TABLES_H #pragma once
#define JITIL_TABLES_H
#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/Gekko.h"
#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/PPCTables.h"
@ -14,5 +13,3 @@ namespace JitILTables
void CompileInstruction(PPCAnalyst::CodeOp & op); void CompileInstruction(PPCAnalyst::CodeOp & op);
void InitTables(); void InitTables();
} }
#endif

View File

@ -2,8 +2,7 @@
// Licensed under GPLv2 // Licensed under GPLv2
// Refer to the license.txt file included. // Refer to the license.txt file included.
#ifndef VERTEXLOADER_POSITION_H #pragma once
#define VERTEXLOADER_POSITION_H
class VertexLoader_Position { class VertexLoader_Position {
public: public:
@ -18,4 +17,3 @@ public:
static TPipelineFunction GetFunction(unsigned int _type, unsigned int _format, unsigned int _elements); static TPipelineFunction GetFunction(unsigned int _type, unsigned int _format, unsigned int _elements);
}; };
#endif