|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/praenti/ddd/ddd-3.3.1-detect-hipot.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
--- ddd-3.3.1/ddd/configure.orig 2002-12-04 09:44:09.000000000 +0200
|
|
+++ ddd-3.3.1/ddd/configure 2002-12-04 10:45:04.000000000 +0200
|
|
@@ -13282,13 +13282,14 @@
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
|
which can conflict with char $ac_func(); below. */
|
|
#include <assert.h>
|
|
+#include <math.h>
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
-char $ac_func();
|
|
+/* char $ac_func(); */
|
|
|
|
int main() {
|
|
|
|
@@ -13298,7 +13299,8 @@
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
choke me
|
|
#else
|
|
-$ac_func();
|
|
+double x = 0, y =0;
|
|
+x = $ac_func(x, y);
|
|
#endif
|
|
|
|
; return 0; }
|