Commit 7d620413 authored by Robert Izzard's avatar Robert Izzard
Browse files

add workaround for when MPIl is not available (e.g. OSX)

parent ff5589d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -618,7 +618,7 @@ You can also use your own sort function,

```

where the `sortfunc` should be defined as for the C standard-library `qsort` function.
where the `sortfunc` should be defined as for the Gnu C standard-library `qsort` function.

14. A word on some internal functionality. Because *libcdict* automatically handles floating-point numbers, it has to make some choices. These come down to:

+1 −1
Original line number Diff line number Diff line
###########################################################
# meson build file for libcdict
#
# (c) Robert Izzard 01/10/2022
# (c) Robert Izzard 18/10/2022
#
# You may well require: bash, gawk, cp, grep, wc, tr, head
#                       etc. These are standard tools on
+9 −0
Original line number Diff line number Diff line
@@ -92,3 +92,12 @@ const Boolean vb = FALSE;
    printf(__VA_ARGS__);                                \
    printf("\n");                                       \
    return CDICT_TEST_FAILED;


/*
 * M_PIl is not available on some platforms,
 * so invent it
 */
#ifndef M_PIl
#define M_PIl       0xc.90fdaa22168c235p-2L
#endif