more file version tags

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-06-06 22:12:19 +00:00
parent 005e436b57
commit 2b8338cb52
115 changed files with 578 additions and 335 deletions

View File

@@ -58,14 +58,14 @@ void ast_register_file_version(const char *file, const char *version);
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;