Skip to content

Commit

Permalink
Improve cpow function test
Browse files Browse the repository at this point in the history
Issue: #113
  • Loading branch information
dspinellis committed Sep 23, 2020
1 parent 63228a8 commit 719e2d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core-tools/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ AC_CHECK_HEADERS([stdlib.h])

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS(cpow)

# Output files
AC_CONFIG_HEADERS([config.h])
Expand All @@ -47,7 +48,6 @@ AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile])

AM_CONDITIONAL([FREEBSD], [test $(uname) = "FreeBSD"])
AM_CONDITIONAL([LINUX], [test $(uname) = "Linux"])
AM_CONDITIONAL([DARWIN], [test $(uname) = "Darwin"])

Expand Down
6 changes: 0 additions & 6 deletions core-tools/src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
include ../../.config

if FREEBSD
CPOW = ../../unix-tools/cpow.c
else
CPOW =
endif

if LINUX
DGSH_ASSEMBLY_FILE=dgsh-elf.s
else
Expand Down
4 changes: 4 additions & 0 deletions core-tools/src/dgsh-w.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include "dgsh.h"
#include "dgsh-debug.h"

#if !defined(HAVE_CPOW)
#include "../../unix-tools/cpow.c"
#endif

void
read_number(int fd, long double *x, long double complex *xc)
{
Expand Down

0 comments on commit 719e2d7

Please sign in to comment.