Revision: 76208
          http://sourceforge.net/p/brlcad/code/76208
Author:   starseeker
Date:     2020-06-25 21:48:24 +0000 (Thu, 25 Jun 2020)
Log Message:
-----------
For C++, newer standards let us do 
std::this_thread::sleep_for(std::chrono::milliseconds(1000)) and avoid 
redefining sleep.  Qt's qthread.h doesn't like our (re)definition, so see if we 
can restrict it to C only - a quick check doesn't seem to show much (any?) use 
of sleep in C++ in our current code...

Modified Paths:
--------------
    brlcad/trunk/include/config_win.h.in

Modified: brlcad/trunk/include/config_win.h.in
===================================================================
--- brlcad/trunk/include/config_win.h.in        2020-06-25 21:34:40 UTC (rev 
76207)
+++ brlcad/trunk/include/config_win.h.in        2020-06-25 21:48:24 UTC (rev 
76208)
@@ -311,7 +311,9 @@
 #define fork() -1
 #define getprogname() _pgmptr
 #define HAVE_SHARED_RINT_TEST 1
-#define sleep(_SECONDS) (Sleep(1000 * (_SECONDS)))
+#ifndef __cplusplus
+#  define sleep(_SECONDS) (Sleep(1000 * (_SECONDS)))
+#endif
 
 #if !defined(__cplusplus) && !defined(inline)
 /*  Microsoft specific inline specifier */

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



_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to