added raw_ping and printf-like putsock
[NeonServV5.git] / main.h
diff --git a/main.h b/main.h
index f06fc6fc610ed61b17911672c0aae65071808eed..feab5a1649e0b5a1754e1ec017a9a1af878fe6da 100644 (file)
--- a/main.h
+++ b/main.h
 #include <unistd.h>
 #include <netdb.h>
 
+#if __GNUC__
+#define PRINTF_LIKE(M,N) __attribute__((format (printf, M, N)))
+#else
+#define PRINTF_LIKE(M,N)
+#endif
+
 #if __GNUC__ >= 2
 #define UNUSED_ARG(ARG) ARG __attribute__((unused))
 #elif defined(S_SPLINT_S)
@@ -41,6 +47,7 @@ int stricmp (const char *s1, const char *s2)
 #define REALLEN         50
 #define TOPICLEN        500
 #define CHANNELLEN      200
+#define MAXLEN          512
 
 //valid nick chars
 #define VALID_NICK_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{|}~[\\]^_`"