[Asterisk-cvs] asterisk/include asterisk.h,1.6,1.7
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Tue Jun 7 12:04:46 CDT 2005
Update of /usr/cvsroot/asterisk/include
In directory mongoose.digium.com:/tmp/cvs-serv16409/include
Modified Files:
asterisk.h
Log Message:
fix version-string builds for non-gcc compilers
don't build version-string stuff for LOW_MEMORY builds
Index: asterisk.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- asterisk.h 7 Jun 2005 01:17:07 -0000 1.6
+++ asterisk.h 7 Jun 2005 16:07:06 -0000 1.7
@@ -97,7 +97,7 @@
* not be present and CVS would expand the Revision keyword into the file's
* revision number.
*/
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(LOW_MEMORY)
#define ASTERISK_FILE_VERSION(file, version) \
static void __attribute__((constructor)) __register_file_version(void) \
{ \
@@ -107,8 +107,10 @@
{ \
ast_unregister_file_version(file); \
}
-#else /* ! __GNUC__ */
-#define ASTERISK_FILE_VERSION(x) static const char __file_version[] = x;
+#elif !defined(LOW_MEMORY) /* ! __GNUC__ && ! LOW_MEMORY*/
+#define ASTERISK_FILE_VERSION(file, x) static const char __file_version[] = x;
+#else /* LOW_MEMORY */
+#define ASTERISK_FILE_VERSION(file, x)
#endif /* __GNUC__ */
#endif /* _ASTERISK_H */
More information about the svn-commits
mailing list