[BACK]Return to patch-query.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / gigabase / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / gigabase / patches / patch-query.h (download)

Revision 1.1, Fri Mar 20 20:45:46 2020 UTC (8 months, 1 week ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, HEAD

Fix portability by explicit casts to resolve ambiguity. Don't
reimplement standard C functions.

$NetBSD: patch-query.h,v 1.1 2020/03/20 20:45:46 joerg Exp $

--- query.h.orig	2020-03-20 18:58:57.685093966 +0000
+++ query.h
@@ -710,6 +710,7 @@ inline dbQuery& add(dbQuery& query, dbAr
 #endif
 
 #define USER_FUNC(f) static dbUserFunction f##_descriptor(&f, STRLITERAL(#f))
+#define USER_FUNC2(f,g) static dbUserFunction f##_descriptor(g, STRLITERAL(#f))
 
 class  dbInheritedAttribute;
 class  dbSynthesizedAttribute;