Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/sc_include.m4
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ AC_DEFUN([SC_CHECK_MATH],
[[
/* make this so complex that the compiler cannot predict the result */
double a = 3.14149;
for (; sqrt (a) < a; a *= 1.000023) { putc ('1', stdout); }
double (*volatile fp)(double) = sqrt;
for (; fp (a) < a; a *= 1.000023) { putc ('1', stdout); }
]], [m],
[AC_DEFINE([HAVE_MATH], [1], [Define to 1 if sqrt links successfully])],
[AC_MSG_ERROR([unable to link with sqrt, cos, sin, both as is and with -lm])])
Expand Down
1 change: 1 addition & 0 deletions doc/author_anselmann.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I place my contributions to libsc under the FreeBSD license. Mathias Anselmann