From: Stephen D. <sd...@us...> - 2005-07-05 23:08:00
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28604/include Modified Files: nscheck.h Log Message: Microsoft's feeble compiler can't handle macro varargs. New usage is: NS_GNUC_NONNULL((x, y, z)). Index: nscheck.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/nscheck.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** nscheck.h 27 Jun 2005 17:50:18 -0000 1.4 --- nscheck.h 5 Jul 2005 23:07:49 -0000 1.5 *************** *** 56,64 **** #if __GNUC_PREREQ(3,3) ! # define NS_GNUC_NONNULL(...) __attribute__((__nonnull__(__VA_ARGS__))) # define NS_GNUC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) # define NS_GNUC_MAYALIAS __attribute__((__may_alias__)) #else ! # define NS_GNUC_NONNULL(...) # define NS_GNUC_WARN_UNUSED_RESULT # define NS_GNUC_MAYALIAS --- 56,64 ---- #if __GNUC_PREREQ(3,3) ! # define NS_GNUC_NONNULL(ARGS) __attribute__((__nonnull__(ARGS))) # define NS_GNUC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__)) # define NS_GNUC_MAYALIAS __attribute__((__may_alias__)) #else ! # define NS_GNUC_NONNULL(ARGS) # define NS_GNUC_WARN_UNUSED_RESULT # define NS_GNUC_MAYALIAS |