Skip to content

Commit aecf7bd

Browse files
committed
Remove include guards from Server/SDK
1 parent 2f6f61f commit aecf7bd

File tree

8 files changed

+8
-32
lines changed

8 files changed

+8
-32
lines changed

Server/sdk/MTAPlatform.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __PLATFORM_H
13-
#define __PLATFORM_H
12+
#pragma once
1413

1514
extern "C" bool g_bSilent;
1615
extern "C" bool g_bNoTopBar;
@@ -95,5 +94,3 @@ typedef int socklen_t;
9594
#endif
9695

9796
#endif
98-
99-
#endif

Server/sdk/core/CExceptionInformation.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CEXCEPTIONINFORMATION_H
13-
#define __CEXCEPTIONINFORMATION_H
12+
#pragma once
1413

1514
class CExceptionInformation
1615
{
@@ -38,5 +37,3 @@ class CExceptionInformation
3837
virtual unsigned long GetSS(void) = 0;
3938
virtual unsigned long GetEFlags(void) = 0;
4039
};
41-
42-
#endif

Server/sdk/core/CModManager.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CMODMANAGER_H
13-
#define __CMODMANAGER_H
12+
#pragma once
1413

1514
class CModManager
1615
{
@@ -21,5 +20,3 @@ class CModManager
2120
virtual const char* GetModPath(void) = 0;
2221
virtual SString GetAbsolutePath(const char* szRelative) = 0;
2322
};
24-
25-
#endif

Server/sdk/core/CServerBase.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CSERVERBASE_H
13-
#define __CSERVERBASE_H
12+
#pragma once
1413

1514
#include "CServerInterface.h"
1615

@@ -29,5 +28,3 @@ class CServerBase
2928
virtual bool PendingWorkToDo(void) = 0;
3029
virtual bool GetSleepIntervals(int& iSleepBusyMs, int& iSleepIdleMs, int& iLogicFpsLimit) = 0;
3130
};
32-
33-
#endif

Server/sdk/core/CServerInterface.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CSERVERINTERFACE_H
13-
#define __CSERVERINTERFACE_H
12+
#pragma once
1413

1514
#include "net/CNetServer.h"
1615
#include "CModManager.h"
@@ -29,5 +28,3 @@ class CServerInterface
2928
virtual void Printf(const char* szFormat, ...) = 0;
3029
virtual bool IsRequestingExit(void) = 0;
3130
};
32-
33-
#endif

Server/sdk/net/CNetServer.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CNETSERVER_H
13-
#define __CNETSERVER_H
12+
#pragma once
1413

1514
#include "ns_common.h"
1615
#include "net/bitstream.h"
@@ -166,5 +165,3 @@ class CNetServer
166165
return false;
167166
}
168167
};
169-
170-
#endif

Server/sdk/net/ns_common.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __NS_COMMON_H
13-
#define __NS_COMMON_H
12+
#pragma once
1413

1514
#include "net/bitstream.h"
1615
#include "net/packetenums.h"
@@ -167,5 +166,3 @@ enum ePacketOrdering
167166
typedef NetServerPlayerID NetPlayerID;
168167
typedef NetServerPacketPriority NetPacketPriority;
169168
typedef NetServerPacketReliability NetPacketReliability;
170-
171-
#endif

Server/sdk/net/ns_playerid.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __NS_PLAYERID_H
13-
#define __NS_PLAYERID_H
12+
#pragma once
1413

1514
#include <MTAPlatform.h>
1615

@@ -68,5 +67,3 @@ class NetServerPlayerID
6867
unsigned long GetBinaryAddress(void) const { return m_uiBinaryAddress; };
6968
unsigned short GetPort(void) const { return m_usPort; };
7069
};
71-
72-
#endif

0 commit comments

Comments
 (0)