35 lines
972 B
Plaintext
35 lines
972 B
Plaintext
$OpenBSD: patch-bitlbee_h,v 1.6 2006/04/11 15:11:33 naddy Exp $
|
|
Use a more usefull name for the server
|
|
--- bitlbee.h.orig Sun Apr 2 04:53:38 2006
|
|
+++ bitlbee.h Thu Apr 6 23:40:56 2006
|
|
@@ -69,7 +69,6 @@
|
|
#undef strndup
|
|
#define strndup __PLEASE_USE_THE_GLIB_STRDUP_FUNCTIONS_SYSTEM_INSTEAD__
|
|
#undef snprintf
|
|
-#define snprintf __PLEASE_USE_G_SNPRINTF_INSTEAD__
|
|
#undef strcasecmp
|
|
#define strcasecmp __PLEASE_USE_G_STRCASECMP_INSTEAD__
|
|
#undef strncasecmp
|
|
@@ -81,7 +80,7 @@
|
|
|
|
#define _( x ) x
|
|
|
|
-#define ROOT_NICK "root"
|
|
+#define ROOT_NICK "bitlbee"
|
|
#define ROOT_CHAN "&bitlbee"
|
|
#define ROOT_FN "User manager"
|
|
|
|
@@ -132,5 +131,12 @@ int bitlbee_save( irc_t *irc );
|
|
void bitlbee_shutdown( gpointer data );
|
|
|
|
extern global_t global;
|
|
+
|
|
+#define COMPILE_TIME_ASSERT(ex) do {\
|
|
+typedef char COMPILE_TIME_ASSERTION_FAILURE[(ex) ? 1 : -1];\
|
|
+} while(0)
|
|
+
|
|
+#define FILE_SCOPED_COMPILE_TIME_ASSERT(ex) \
|
|
+extern char COMPILE_TIME_ASSERTION_FAILURE[(ex) ? 1 : -1];
|
|
|
|
#endif
|