define NS_DEPRECATED

This commit is contained in:
Mathieu Lacage
2008-07-09 20:11:16 -07:00
parent fb17731cab
commit 7b34f76ef7
2 changed files with 11 additions and 0 deletions

10
src/core/deprecated.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef NS3_DEPRECATED_H
#define NS3_DEPRECATED_H
#ifdef __GNUC__
#define NS_DEPRECATED __attribute__ ((deprecated))
#else
#define NS_DEPRECATED
#endif
#endif /* NS3_DEPRECATED_H */

View File

@@ -110,5 +110,6 @@ def build(bld):
'trace-source-accessor.h',
'config.h',
'object-vector.h',
'deprecated.h'
]