]> pd.if.org Git - pdclib/blobdiff - opt/notime/timespec_get.c
<time.h> opt/notime: add timespec_get. wrap time with REGTEST check
[pdclib] / opt / notime / timespec_get.c
diff --git a/opt/notime/timespec_get.c b/opt/notime/timespec_get.c
new file mode 100644 (file)
index 0000000..0dcec1a
--- /dev/null
@@ -0,0 +1,18 @@
+#include <time.h>\r
+#ifndef REGTEST\r
+\r
+int timespec_get( struct timespec *ts, int base )\r
+{\r
+    return 0;\r
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file