]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/portability/portability_fixes.cpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / portability / portability_fixes.cpp
index e26ee28684678f9592e4ab8be7f8d04da5166813..5b49e0c82002d5b0ba915d54247bc1a91d602dc4 100644 (file)
@@ -1,39 +1,39 @@
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-//   Author:    Andy Rushton\r
-//   Copyright: (c) Southampton University 1999-2004\r
-//              (c) Andy Rushton           2004-2009\r
-//   License:   BSD License, see ../docs/license.html\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-#include "portability_fixes.hpp"\r
-\r
-#ifdef MSWINDOWS\r
-#include "windows.h"\r
-#endif\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-// problems with missing functions\r
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-#ifdef MSWINDOWS\r
-unsigned sleep(unsigned seconds)\r
-{\r
-  Sleep(1000*seconds);\r
-  // should return remaining time if interrupted - however Windoze Sleep cannot be interrupted\r
-  return 0;\r
-}\r
-#endif\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-// Function for establishing endian-ness\r
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-bool stlplus::little_endian(void)\r
-{\r
-  int sample = 1;\r
-  char* sample_bytes = (char*)&sample;\r
-  return sample_bytes[0] != 0;\r
-}\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
+////////////////////////////////////////////////////////////////////////////////
+
+//   Author:    Andy Rushton
+//   Copyright: (c) Southampton University 1999-2004
+//              (c) Andy Rushton           2004-2009
+//   License:   BSD License, see ../docs/license.html
+
+////////////////////////////////////////////////////////////////////////////////
+#include "portability_fixes.hpp"
+
+#ifdef MSWINDOWS
+#include "windows.h"
+#endif
+
+////////////////////////////////////////////////////////////////////////////////
+// problems with missing functions
+////////////////////////////////////////////////////////////////////////////////
+
+#ifdef MSWINDOWS
+unsigned sleep(unsigned seconds)
+{
+  Sleep(1000*seconds);
+  // should return remaining time if interrupted - however Windoze Sleep cannot be interrupted
+  return 0;
+}
+#endif
+
+////////////////////////////////////////////////////////////////////////////////
+// Function for establishing endian-ness
+////////////////////////////////////////////////////////////////////////////////
+
+bool stlplus::little_endian(void)
+{
+  int sample = 1;
+  char* sample_bytes = (char*)&sample;
+  return sample_bytes[0] != 0;
+}
+
+////////////////////////////////////////////////////////////////////////////////
This page took 0.019883 seconds and 4 git commands to generate.