summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-02 15:54:57 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-02 15:54:57 +0200
commitb449ad861310b6ec26a877835877730c8f11ad2c (patch)
treebd02fc5cbaceab7f7db1e24c95e78b22e6c39607 /src/OSSupport
parentMerge branch 'master' into globals (diff)
parentMore fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future. (diff)
downloadcuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar.gz
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar.bz2
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar.lz
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar.xz
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.tar.zst
cuberite-b449ad861310b6ec26a877835877730c8f11ad2c.zip
Diffstat (limited to 'src/OSSupport')
-rw-r--r--src/OSSupport/Errors.cpp2
-rw-r--r--src/OSSupport/Sleep.h2
-rw-r--r--src/OSSupport/Thread.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/OSSupport/Errors.cpp b/src/OSSupport/Errors.cpp
index 2e05f1df1..6072b6ac6 100644
--- a/src/OSSupport/Errors.cpp
+++ b/src/OSSupport/Errors.cpp
@@ -22,7 +22,7 @@ AString GetOSErrorString( int a_ErrNo )
// According to http://linux.die.net/man/3/strerror_r there are two versions of strerror_r():
- #if ( _GNU_SOURCE ) && !defined(ANDROID_NDK) // GNU version of strerror_r()
+ #if !defined(__APPLE__) && ( _GNU_SOURCE ) && !defined(ANDROID_NDK) // GNU version of strerror_r()
char * res = strerror_r( errno, buffer, ARRAYCOUNT(buffer) );
if( res != NULL )
diff --git a/src/OSSupport/Sleep.h b/src/OSSupport/Sleep.h
index 5298c15da..0ec0adf9d 100644
--- a/src/OSSupport/Sleep.h
+++ b/src/OSSupport/Sleep.h
@@ -4,4 +4,4 @@ class cSleep
{
public:
static void MilliSleep( unsigned int a_MilliSeconds );
-}; \ No newline at end of file
+};
diff --git a/src/OSSupport/Thread.h b/src/OSSupport/Thread.h
index 3c9316424..4153b2427 100644
--- a/src/OSSupport/Thread.h
+++ b/src/OSSupport/Thread.h
@@ -23,4 +23,4 @@ private:
cEvent* m_StopEvent;
AString m_ThreadName;
-}; \ No newline at end of file
+};