X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=main.h;h=71b98db1beb5f2795212420e43155b649dc91461;hp=e355d2375fad94349cae3030d24bde2bb93d2584;hb=bbf107bf1238e0dd767fb25748ae347b9f0f6a85;hpb=effdbc5be2029ce5796772cba8ee9ba3a61efa7b diff --git a/main.h b/main.h index e355d23..71b98db 100644 --- a/main.h +++ b/main.h @@ -1,6 +1,8 @@ #ifndef _main_h #define _main_h +#define NEONSERV_VERSION "5.0.1-dev" + #include "config.h" #include @@ -31,6 +33,21 @@ #define UNUSED_ARG(ARG) ARG #endif +#define STRINGIFY_(x) #x +#define STRINGIFY(x) STRINGIFY_(x) + +#if defined(__GNUC__) +#if defined(__GNUC_PATCHLEVEL__) +#define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) "." STRINGIFY(__GNUC_PATCHLEVEL__) +#else +#define COMPILER "GCC" " " STRINGIFY(__GNUC__) "." STRINGIFY(__GNUC_MINOR__) +#endif +#elif defined (__IMAGECRAFT__) +#define COMPILER "ICCAVR" +#else +#define COMPILER "Unknown" +#endif + #define SOCKET_SELECT_TIME 2 #define NICKLEN 30 @@ -56,6 +73,8 @@ #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN +extern time_t start_time; + int stricmp (const char *s1, const char *s2); int stricmplen (const char *s1, const char *s2, int len);