mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-27 16:56:28 -04:00
It's 2016 and C++11 supports these natively
This commit is contained in:
@@ -47,6 +47,7 @@ public:
|
||||
|
||||
NetworkId& operator= (const NetworkId&);
|
||||
bool operator< (const NetworkId& rhs) const;
|
||||
bool operator> (const NetworkId& rhs) const;
|
||||
bool operator== (const NetworkId& rhs) const;
|
||||
bool operator!= (const NetworkId& rhs) const;
|
||||
size_t getHashValue() const;
|
||||
@@ -94,6 +95,11 @@ inline bool NetworkId::operator< (const NetworkId& rhs) const
|
||||
return m_value < rhs.m_value;
|
||||
}
|
||||
|
||||
inline bool NetworkId::operator> (const NetworkId& rhs) const
|
||||
{
|
||||
return m_value > rhs.m_value;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
inline bool NetworkId::operator== (const NetworkId& rhs) const
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#define PLATFORM_LINUX
|
||||
|
||||
#include <cstdio>
|
||||
#include <inttypes.h>
|
||||
// ======================================================================
|
||||
// basic types that we assume to be around
|
||||
|
||||
@@ -20,8 +21,8 @@ typedef unsigned long uint32;
|
||||
typedef signed char int8;
|
||||
typedef signed short int16;
|
||||
typedef signed long int32;
|
||||
typedef signed long long int int64;
|
||||
typedef unsigned long long int uint64;
|
||||
typedef int64_t int64;
|
||||
typedef uint64_t uint64;
|
||||
typedef float real;
|
||||
typedef FILE* FILE_HANDLE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user