[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] applications/HLA_TestsSuite create_destroy.cc t...
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] applications/HLA_TestsSuite create_destroy.cc t... |
Date: |
Tue, 18 Sep 2012 09:13:44 +0000 |
CVSROOT: /sources/certi
Module name: applications
Changes by: Eric NOULARD <erk> 12/09/18 09:13:44
Modified files:
HLA_TestsSuite : create_destroy.cc test_HugeAVPV.cc
test_NotificationSwitches.cc test_Sync.cc
Log message:
Add proper definition of sleep
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/create_destroy.cc?cvsroot=certi&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/test_HugeAVPV.cc?cvsroot=certi&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/test_NotificationSwitches.cc?cvsroot=certi&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/test_Sync.cc?cvsroot=certi&r1=1.3&r2=1.4
Patches:
Index: create_destroy.cc
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/create_destroy.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- create_destroy.cc 30 Jun 2008 13:35:20 -0000 1.9
+++ create_destroy.cc 18 Sep 2012 09:13:44 -0000 1.10
@@ -6,6 +6,8 @@
#include <algorithm>
#include <process.h>
#define sleep(a) Sleep(a * 1000)
+#else
+ #include <unistd.h>
#endif
class Create_Destroy : public RTI::RTIambassador, public NullFederateAmbassador
Index: test_HugeAVPV.cc
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/test_HugeAVPV.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- test_HugeAVPV.cc 14 Jul 2008 14:12:42 -0000 1.4
+++ test_HugeAVPV.cc 18 Sep 2012 09:13:44 -0000 1.5
@@ -13,6 +13,8 @@
#include <algorithm>
#include <process.h>
#define sleep(a) Sleep(a * 1000)
+#else
+ #include <unistd.h>
#endif
using std::string;
Index: test_NotificationSwitches.cc
===================================================================
RCS file:
/sources/certi/applications/HLA_TestsSuite/test_NotificationSwitches.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- test_NotificationSwitches.cc 27 Apr 2009 11:59:55 -0000 1.3
+++ test_NotificationSwitches.cc 18 Sep 2012 09:13:44 -0000 1.4
@@ -8,6 +8,16 @@
#include <string>
#include <cstdlib>
+#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: test_Sync.cc
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/test_Sync.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- test_Sync.cc 30 Jun 2008 13:35:20 -0000 1.3
+++ test_Sync.cc 18 Sep 2012 09:13:44 -0000 1.4
@@ -13,6 +13,8 @@
#include <algorithm>
#include <process.h>
#define sleep(a) Sleep(a * 1000)
+#else
+ #include <unistd.h>
#endif
using std::string;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] applications/HLA_TestsSuite create_destroy.cc t...,
CERTI CVS commits <=