Revision: 9014
          http://playerstage.svn.sourceforge.net/playerstage/?rev=9014&view=rev
Author:   jpgr87
Date:     2010-12-30 02:04:21 +0000 (Thu, 30 Dec 2010)

Log Message:
-----------
Fixed endian.h build error for OS X in NXT driver

Modified Paths:
--------------
    code/player/trunk/server/drivers/mixed/nxt/src/nxtdc.cc

Modified: code/player/trunk/server/drivers/mixed/nxt/src/nxtdc.cc
===================================================================
--- code/player/trunk/server/drivers/mixed/nxt/src/nxtdc.cc     2010-12-15 
03:37:19 UTC (rev 9013)
+++ code/player/trunk/server/drivers/mixed/nxt/src/nxtdc.cc     2010-12-30 
02:04:21 UTC (rev 9014)
@@ -22,7 +22,15 @@
 #include <cassert>
 #include <cstdio>
 #include <cstring>
+#if defined(__APPLE__)
+#include <libkern/OSByteOrder.h>
+#define le32toh OSSwapLittleToHostInt32
+#define le16toh OSSwapLittleToHostInt16
+#define htole16 OSSwapHostToLittleInt16
+#define htole32 OSSwapHostToLittleInt32
+#else
 #include <endian.h>
+#endif
 #include "nxtdc.hh"
 #include <sstream>
 #include <sys/time.h>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to