windows: update the error message when an error occurs while writing to the serial...
[deb_libcec.git] / src / lib / platform / windows / os-threads.h
index ff773f094cab69aca2374e9b5c30a2a0200db277..091e962faf39bfb46303d3b81acc61ecc6b60c99 100644 (file)
  *     http://www.pulse-eight.net/
  */
 
+#include <stdint.h>
+
 namespace PLATFORM
 {
   #define thread_t                                 HANDLE
-  #define INVALID_THREAD_VALUE                     INVALID_HANDLE
+  #define INVALID_THREAD_VALUE                     NULL
   #define ThreadsWait(thread, retVal)              (::WaitForSingleObject(thread, INFINITE) < 0)
   #define ThreadsCreate(thread, func, arg)         ((thread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)func, arg, 0, NULL)) == NULL ? false : true)