X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fcommon.h;h=fa997c5d4ee0cbcaf050dc3da6d24c3e748cf662;hb=5b98dd1c37a6151e734e8fa3a7054248ae3455c6;hp=00925984f7b19c7243289baacf29ebf7c0b081e9;hpb=83979aa4978c462b7479601567a874969762c07d;p=matches%2FMCTX3420.git diff --git a/server/common.h b/server/common.h index 0092598..fa997c5 100644 --- a/server/common.h +++ b/server/common.h @@ -6,18 +6,24 @@ #ifndef _COMMON_H #define _COMMON_H +/** Defines required to allow various C standard functions to be used **/ #define _POSIX_C_SOURCE 200809L #define _BSD_SOURCE #define _XOPEN_SOURCE 600 /** Determine if we're running on the BBB **/ #ifdef __arm__ -#define _BBB -#endif + #define _BBB +#else + //#warning This software was designed for the BeagleBone Black. Some features may not work. +#endif //__arm__ /** The current API version **/ #define API_VERSION 0 + + + #include #include #include @@ -39,6 +45,10 @@ #define TIMEVAL_DIFF(tv1, tv2) ((tv1).tv_sec - (tv2).tv_sec + 1e-6 * ((tv1).tv_usec - (tv2).tv_usec)) +extern bool PathExists(const char * path); +extern bool DirExists(const char * path); + + #endif //_COMMON_H