]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_create.c
Fix warnings
[pdclib] / opt / nothread / tss_create.c
index 2a28fcadcf76419396801c441a6baf5236efbde9..7faa4f9f72637a4ffa99cf539c6a1459989d34af 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int tss_create(tss_t *key, tss_dtor_t dtor)\r
@@ -6,6 +7,7 @@ int tss_create(tss_t *key, tss_dtor_t dtor)
        key->value = NULL;\r
        return thrd_success;\r
 }\r
+#endif\r
 \r
 #ifdef TEST\r
 #include <_PDCLIB_test.h>\r
@@ -16,4 +18,4 @@ int main( void )
     return TEST_RESULTS;\r
 }\r
 \r
-#endif
\ No newline at end of file
+#endif\r