Update introduction
[matches/MCTX3420.git] / server / common.h
index cc2ab3f..5eee7cc 100644 (file)
@@ -10,7 +10,7 @@
 #define _POSIX_C_SOURCE 200809L
 //#define _BSD_SOURCE
 #define _XOPEN_SOURCE 600
-
+#define _GNU_SOURCE
 /** Determine if we're running on the BBB **/
 #ifdef __arm__
        #define _BBB
@@ -21,6 +21,7 @@
 /** The current API version **/
 #define API_VERSION 0
 
+//#define REALTIME_VERSION
 
 
 
@@ -34,6 +35,7 @@
 #include <assert.h>
 #include <sys/time.h>
 #include <time.h>
+#include <string.h>
 
 #include "log.h"
 #include "fastcgi.h"
@@ -49,7 +51,8 @@
                                                                                (tv)->tv_nsec = ((value) - (int)(value))*1e9; \
                                                                        }
 
-extern bool PathExists(const char * path);
+//extern bool PathExists(const char * path);
+extern bool DirExists(const char * path);
 
 
 

UCC git Repository :: git.ucc.asn.au