Merge pull request #546 from workhorsy/header_guard_to_pragma_once

Changed lingering header include guards to pragma once.
This commit is contained in:
Tony Wasserka 2014-07-06 14:19:32 +02:00
commit a798548c30
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