mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user