]> git.stg.codes - stg.git/blobdiff - libs/common/strptime.cpp
Port to CMake, get rid of os_int.h.
[stg.git] / libs / common / strptime.cpp
diff --git a/libs/common/strptime.cpp b/libs/common/strptime.cpp
new file mode 100644 (file)
index 0000000..38b86b4
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * $Revision: 1.1 $
+ * $Date: 2007/05/17 08:25:58 $
+ *
+ * This file contain a replacement of commonly used function strptime
+ * Under some OS's it appears only with _XOPEN_SOURCE definition
+ *
+ */
+
+#define _XOPEN_SOURCE
+#include <time.h>
+
+#include "stg/common.h"
+
+char * stg_strptime(const char * a, const char * b, struct tm * tm)
+{
+return strptime(a, b, tm);
+}
+