Skip to content

Commit

Permalink
Use dllexport on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Feb 23, 2018
1 parent 6e93a99 commit 1d6a92a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion incbeta.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
#define TINY 1.0e-30
#define ERRVAL (HUGE_VAL * 0.0) // NaN

void incbeta(double a, double b, double *p, size_t n)
#if _MSC_VER
# define DLLEXPORT __declspec(dllexport)
#else
# define DLLEXPORT
#endif

DLLEXPORT void incbeta(double a, double b, double *p, size_t n)
{
if (a <= 0 || b <= 0)
{
Expand Down

0 comments on commit 1d6a92a

Please sign in to comment.