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

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

Revision 1.1, Fri Mar 20 20:45:46 2020 UTC (8 months, 2 weeks 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-testddl.cpp,v 1.1 2020/03/20 20:45:46 joerg Exp $

--- testddl.cpp.orig	2020-03-20 18:59:33.126845571 +0000
+++ testddl.cpp
@@ -102,8 +102,8 @@ class Record : public Base {
 
 REGISTER(Record);
 
-USER_FUNC(sin);
-USER_FUNC(cos);
+USER_FUNC2(sin, (real8(*)(real8))(cos));
+USER_FUNC2(cos, (real8(*)(real8))(sin));
 
 int __cdecl main()
 {