certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/HLA_Tutorial controllerFederate.cc...


From: CERTI CVS commits
Subject: [certi-cvs] applications/HLA_Tutorial controllerFederate.cc...
Date: Tue, 18 Sep 2012 09:13:26 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Eric NOULARD <erk>      12/09/18 09:13:26

Modified files:
        HLA_Tutorial   : controllerFederate.cc processFederate.cc 

Log message:
        Add proper definition of sleep

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_Tutorial/controllerFederate.cc?cvsroot=certi&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_Tutorial/processFederate.cc?cvsroot=certi&r1=1.8&r2=1.9

Patches:
Index: controllerFederate.cc
===================================================================
RCS file: /sources/certi/applications/HLA_Tutorial/controllerFederate.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- controllerFederate.cc       29 Jun 2008 13:55:39 -0000      1.9
+++ controllerFederate.cc       18 Sep 2012 09:13:26 -0000      1.10
@@ -47,6 +47,15 @@
 #include <string.h>
 #include "DisplayServiceExplanation.hh"
 
+#if defined(_WIN32)
+    #include <windows.h>
+    #include <algorithm>
+    #include <process.h>
+    #define    sleep(a)              Sleep(a * 1000)
+#else
+    #include <unistd.h>
+#endif
+
 using std::string;
 using std::cout;
 using std::cerr;

Index: processFederate.cc
===================================================================
RCS file: /sources/certi/applications/HLA_Tutorial/processFederate.cc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- processFederate.cc  29 Jun 2008 13:55:39 -0000      1.8
+++ processFederate.cc  18 Sep 2012 09:13:26 -0000      1.9
@@ -44,6 +44,14 @@
 
 #include <string.h>
 #include "DisplayServiceExplanation.hh"
+#if defined(_WIN32)
+    #include <windows.h>
+    #include <algorithm>
+    #include <process.h>
+    #define    sleep(a)              Sleep(a * 1000)
+#else
+    #include <unistd.h>
+#endif
 
 
 using std::string;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]