Modify file.h to maintain API compatibility with earlier versions. If a recent

compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@91032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-12-04 23:46:40 +00:00
parent 644c7a89e7
commit fc232a9a27
5 changed files with 70 additions and 2 deletions

View File

@@ -53,4 +53,10 @@
#define attribute_malloc
#endif
#if HAVE_ATTRIBUTE_deprecated
#define attribute_deprecated __attribute__((deprecated))
#else
#define attribute_deprecated
#endif
#endif /* _ASTERISK_COMPILER_H */