]> pd.if.org Git - pdclib/blobdiff - platform/win32/functions/threads/mtx_trylock.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / win32 / functions / threads / mtx_trylock.c
index ebc5e85c3c3fbf806203756533b55c938947ad15..753dd6e12a4671564d242086e738b8448d57d62f 100644 (file)
@@ -6,7 +6,7 @@ int mtx_trylock(mtx_t *mtx)
 {\r
     DWORD myId = GetCurrentThreadId();\r
 \r
-    if(mtx->_ThreadId == myId) {\r
+    if(mtx->_ThreadId == (long) myId) {\r
         mtx->_NestCount++;\r
         return thrd_success;\r
     }\r
@@ -23,7 +23,7 @@ int mtx_trylock(mtx_t *mtx)
 #endif\r
 \r
 #ifdef TEST\r
-#include <_PDCLIB_test.h>\r
+#include "_PDCLIB_test.h"\r
 \r
 int main( void )\r
 {\r