]> git.sesse.net Git - casparcg/commitdiff
2.1.0: osc: Fixed endianess.
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 12 Feb 2012 00:36:15 +0000 (00:36 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sun, 12 Feb 2012 00:36:15 +0000 (00:36 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.1.0@2362 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

protocol/osc/oscpack/OscHostEndianness.h

index 09d115f16ba81be09994c13c69674bb0e1610f83..48c1a69b76c28455c29dd811c9d1b187a0e229fc 100644 (file)
@@ -1,79 +1,76 @@
 /*\r
-       oscpack -- Open Sound Control packet manipulation library\r
-       http://www.audiomulch.com/~rossb/oscpack\r
-\r
-       Copyright (c) 2004-2005 Ross Bencina <rossb@audiomulch.com>\r
-\r
-       Permission is hereby granted, free of charge, to any person obtaining\r
-       a copy of this software and associated documentation files\r
-       (the "Software"), to deal in the Software without restriction,\r
-       including without limitation the rights to use, copy, modify, merge,\r
-       publish, distribute, sublicense, and/or sell copies of the Software,\r
-       and to permit persons to whom the Software is furnished to do so,\r
-       subject to the following conditions:\r
-\r
-       The above copyright notice and this permission notice shall be\r
-       included in all copies or substantial portions of the Software.\r
-\r
-       Any person wishing to distribute modifications to the Software is\r
-       requested to send the modifications to the original developer so that\r
-       they can be incorporated into the canonical version.\r
-\r
-       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-       EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
-       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR\r
-       ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\r
-       CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-       WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+        oscpack -- Open Sound Control packet manipulation library\r
+        http://www.audiomulch.com/~rossb/oscpack\r
+\r
+        Copyright (c) 2004-2005 Ross Bencina <rossb@audiomulch.com>\r
+\r
+        Permission is hereby granted, free of charge, to any person obtaining\r
+        a copy of this software and associated documentation files\r
+        (the "Software"), to deal in the Software without restriction,\r
+        including without limitation the rights to use, copy, modify, merge,\r
+        publish, distribute, sublicense, and/or sell copies of the Software,\r
+        and to permit persons to whom the Software is furnished to do so,\r
+        subject to the following conditions:\r
+\r
+        The above copyright notice and this permission notice shall be\r
+        included in all copies or substantial portions of the Software.\r
+\r
+        Any person wishing to distribute modifications to the Software is\r
+        requested to send the modifications to the original developer so that\r
+        they can be incorporated into the canonical version.\r
+\r
+        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
+        IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR\r
+        ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\r
+        CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+        WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
 */\r
 #ifndef OSC_HOSTENDIANNESS_H\r
 #define OSC_HOSTENDIANNESS_H\r
 \r
-/*\r
-    Make sure either OSC_HOST_LITTLE_ENDIAN or OSC_HOST_BIG_ENDIAN is defined\r
-\r
-    If you know a way to enhance the detection below for Linux and/or MacOSX\r
-    please let me know! I've tried a few things which don't work.\r
-*/\r
-\r
-#define OSC_HOST_LITTLE_ENDIAN 1\r
-#undef OSC_HOST_BIG_ENDIAN\r
-\r
-#if defined(OSC_HOST_LITTLE_ENDIAN) || defined(OSC_HOST_BIG_ENDIAN)\r
-\r
-// you can define one of the above symbols from the command line\r
-// then you don't have to edit this file.\r
-\r
-#elif defined(__WIN32__) || defined(WIN32) || defined(WINCE)\r
-\r
-// assume that __WIN32__ is only defined on little endian systems\r
-\r
-#define OSC_HOST_LITTLE_ENDIAN 1\r
-#undef OSC_HOST_BIG_ENDIAN\r
-\r
-#elif defined(__APPLE__)\r
-\r
-#if defined(__LITTLE_ENDIAN__)\r
-\r
-#define OSC_HOST_LITTLE_ENDIAN 1\r
-#undef OSC_HOST_BIG_ENDIAN\r
-\r
-#elif defined(__BIG_ENDIAN__)\r
-\r
 #define OSC_HOST_BIG_ENDIAN 1\r
-#undef OSC_HOST_LITTLE_ENDIAN\r
-\r
-#endif\r
-\r
-#endif\r
-\r
-#if !defined(OSC_HOST_LITTLE_ENDIAN) && !defined(OSC_HOST_BIG_ENDIAN)\r
-\r
-#error please edit OSCHostEndianness.h to configure endianness\r
-\r
-#endif\r
 \r
+///*\r
+//    Make sure either OSC_HOST_LITTLE_ENDIAN or OSC_HOST_BIG_ENDIAN is defined\r
+//\r
+//    If you know a way to enhance the detection below for Linux and/or MacOSX\r
+//    please let me know! I've tried a few things which don't work.\r
+//*/\r
+//\r
+//#if defined(OSC_HOST_LITTLE_ENDIAN) || defined(OSC_HOST_BIG_ENDIAN)\r
+//\r
+//// you can define one of the above symbols from the command line\r
+//// then you don't have to edit this file.\r
+//\r
+//#elif defined(__WIN32__) || defined(WIN32) || defined(WINCE)\r
+//\r
+//// assume that __WIN32__ is only defined on little endian systems\r
+//\r
+//#define OSC_HOST_LITTLE_ENDIAN 1\r
+//#undef OSC_HOST_BIG_ENDIAN\r
+//\r
+//#elif defined(__APPLE__)\r
+//\r
+//#if defined(__LITTLE_ENDIAN__)\r
+//\r
+//#define OSC_HOST_LITTLE_ENDIAN 1\r
+//#undef OSC_HOST_BIG_ENDIAN\r
+//\r
+//#elif defined(__BIG_ENDIAN__)\r
+//\r
+//#define OSC_HOST_BIG_ENDIAN 1\r
+//#undef OSC_HOST_LITTLE_ENDIAN\r
+//\r
+//#endif\r
+//\r
+//#endif\r
+//\r
+//#if !defined(OSC_HOST_LITTLE_ENDIAN) && !defined(OSC_HOST_BIG_ENDIAN)\r
+//\r
+//#error please edit OSCHostEndianness.h to configure endianness\r
+//\r
+//#endif\r
 \r
 #endif /* OSC_HOSTENDIANNESS_H */\r
-\r