[Asterisk-cvs] asterisk/include asterisk.h,1.3,1.4

kpfleming at lists.digium.com kpfleming at lists.digium.com
Mon Jun 6 18:09:54 CDT 2005


Update of /usr/cvsroot/asterisk/include
In directory mongoose.digium.com:/tmp/cvs-serv11277/include

Modified Files:
	asterisk.h 
Log Message:
more file version tags


Index: asterisk.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- asterisk.h	6 Jun 2005 20:27:51 -0000	1.3
+++ asterisk.h	6 Jun 2005 22:12:19 -0000	1.4
@@ -58,14 +58,14 @@
 void ast_unregister_file_version(const char *file);
 
 #ifdef __GNUC__
-#define ASTERISK_FILE_VERSION(x) \
+#define ASTERISK_FILE_VERSION(file, version) \
 	static void __attribute__((constructor)) __register_file_version(void) \
 	{ \
-		ast_register_file_version(__FILE__, x); \
+		ast_register_file_version(file, version); \
 	} \
 	static void __attribute__((destructor)) __unregister_file_version(void) \
 	{ \
-		ast_unregister_file_version(__FILE__); \
+		ast_unregister_file_version(file); \
 	}
 #else /* ! __GNUC__ */
 #define ASTERISK_FILE_VERSION(x) static const char __file_version[] = x;




More information about the svn-commits mailing list