[svn] Add IRC_DEPRECATED macro for marking functions and data structures

as deprecated on compilers that support it.
This commit is contained in:
nenolod 2007-06-06 09:20:40 -07:00
parent 7fd77cb085
commit 4a8fab1f7b
3 changed files with 25 additions and 6 deletions

View file

@ -1,3 +1,12 @@
nenolod 2007/06/06 15:46:12 UTC (20070606-3510)
Log:
- update IDEAS with link failover
Changes: Modified:
+1 -0 trunk/IDEAS (File Modified)
jilles 2007/06/04 16:04:49 UTC (20070604-3508) jilles 2007/06/04 16:04:49 UTC (20070604-3508)
Log: Log:
xline/resv wildcard checking: xline/resv wildcard checking:

View file

@ -22,7 +22,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * USA
* *
* $Id: ircd_defs.h 3225 2007-03-04 23:42:55Z jilles $ * $Id: ircd_defs.h 3512 2007-06-06 16:20:40Z nenolod $
*/ */
/* /*
@ -30,10 +30,11 @@
* Otherwise there are no user servicable part here. * Otherwise there are no user servicable part here.
* *
*/ */
/* ircd_defs.h - Global size definitions for record entries used
* througout ircd. Please think 3 times before adding anything to this /* ircd_defs.h - Global size definitions for record entries used
* file. * througout ircd. Please think 3 times before adding anything to this
*/ * file.
*/
#ifndef INCLUDED_ircd_defs_h #ifndef INCLUDED_ircd_defs_h
#define INCLUDED_ircd_defs_h #define INCLUDED_ircd_defs_h
@ -48,6 +49,15 @@
#define AFP(a,b) #define AFP(a,b)
#endif #endif
/*
* This ensures that __attribute__((deprecated)) is not used in for example
* sun CC, since it's a GNU-specific extension. -nenolod
*/
#ifdef __GNUC__
#define IRC_DEPRECATED __attribute__((deprecated))
#else
#define IRC_DEPRECATED
#endif
#include "s_log.h" #include "s_log.h"
#include "send.h" #include "send.h"

View file

@ -1 +1 @@
#define SERNO "20070604-3508" #define SERNO "20070606-3510"