1 // this file contains two config.h files, 2 // one for msvc and one for mingw 3 // later config.h should be generated 4 5 #ifdef _MSC_VER 6 7 /* config.h Generated from configure.ac by autoheader. 8 ���KC:(21.06.04) Edited by hand for VC++6.0/WinXP 9 */ 10 11 /* Disable deprecated functions and enums while building */ 12 #define GSL_DISABLE_DEPRECATED 1 13 14 /* Define if you have inline with C99 behavior */ 15 #define HAVE_C99_INLINE 1 16 17 /* Define to 1 if you have the declaration of `acosh', and to 0 if you don't. 18 */ 19 #define HAVE_DECL_ACOSH 0 20 21 /* Define to 1 if you have the declaration of `asinh', and to 0 if you don't. 22 */ 23 #define HAVE_DECL_ASINH 0 24 25 /* Define to 1 if you have the declaration of `atanh', and to 0 if you don't. 26 */ 27 #define HAVE_DECL_ATANH 0 28 29 /* Define to 1 if you have the declaration of `expm1', and to 0 if you don't. 30 */ 31 #define HAVE_DECL_EXPM1 0 32 33 /* Define to 1 if you have the declaration of `feenableexcept', and to 0 if 34 you don't. */ 35 #define HAVE_DECL_FEENABLEEXCEPT 0 36 37 /* Define to 1 if you have the declaration of `fesettrapenable', and to 0 if 38 you don't. */ 39 #define HAVE_DECL_FESETTRAPENABLE 0 40 41 /* Define to 1 if you have the declaration of `finite', and to 0 if you don't. 42 */ 43 #define HAVE_DECL_FINITE 0 44 45 /* Define to 1 if you have the declaration of `frexp', and to 0 if you don't. 46 */ 47 #define HAVE_DECL_FREXP 1 48 49 /* Define to 1 if you have the declaration of `hypot', and to 0 if you don't. 50 */ 51 #define HAVE_DECL_HYPOT 1 52 53 /* Define to 1 if you have the declaration of `isfinite', and to 0 if you 54 don't. */ 55 #define HAVE_DECL_ISFINITE 0 56 57 /* Define to 1 if you have the declaration of `isinf', and to 0 if you don't. 58 */ 59 #define HAVE_DECL_ISINF 0 60 61 /* Define to 1 if you have the declaration of `isnan', and to 0 if you don't. 62 */ 63 #define HAVE_DECL_ISNAN 0 64 65 /* Define to 1 if you have the declaration of `ldexp', and to 0 if you don't. 66 */ 67 #define HAVE_DECL_LDEXP 1 68 69 /* Define to 1 if you have the declaration of `log1p', and to 0 if you don't. 70 */ 71 #define HAVE_DECL_LOG1P 0 72 73 /* Define to 1 if you have the <dlfcn.h> header file. */ 74 #undef HAVE_DLFCN_H 75 76 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ 77 #undef HAVE_DOPRNT 78 79 /* Defined if you have ansi EXIT_SUCCESS and EXIT_FAILURE in stdlib.h */ 80 #define HAVE_EXIT_SUCCESS_AND_FAILURE 1 81 82 /* Defined on architectures with excess floating-point precision */ 83 #undef HAVE_EXTENDED_PRECISION_REGISTERS 84 85 /* Define if x86 processor has sse extensions. */ 86 #define HAVE_FPU_X86_SSE 87 88 /* Define to 1 if you have the <ieeefp.h> header file. */ 89 #undef HAVE_IEEEFP_H 90 91 /* Define this if IEEE comparisons work correctly (e.g. NaN != NaN) */ 92 #undef HAVE_IEEE_COMPARISONS 93 94 /* Define this if IEEE denormalized numbers are available */ 95 #undef HAVE_IEEE_DENORMALS 96 97 /* Define if you have inline */ 98 #define HAVE_INLINE 1 99 100 /* Define to 1 if you have the <inttypes.h> header file. */ 101 #define HAVE_INTTYPES_H 0 102 103 /* Define to 1 if you have the `m' library (-lm). */ 104 #undef HAVE_LIBM 105 106 /* Define to 1 if you have the `memcpy' function. */ 107 #define HAVE_MEMCPY 1 108 109 /* Define to 1 if you have the `memmove' function. */ 110 #define HAVE_MEMMOVE 1 111 112 /* Define to 1 if you have the <memory.h> header file. */ 113 #define HAVE_MEMORY_H 1 114 115 /* Define this if printf can handle %Lf for long double */ 116 #define HAVE_PRINTF_LONGDOUBLE 1 117 118 /* Define to 1 if you have the <stdint.h> header file. */ 119 #undef HAVE_STDINT_H 120 121 /* Define to 1 if you have the <stdlib.h> header file. */ 122 #define HAVE_STDLIB_H 1 123 124 /* Define to 1 if you have the `strdup' function. */ 125 #undef HAVE_STRDUP 126 127 /* Define to 1 if you have the <strings.h> header file. */ 128 #undef HAVE_STRINGS_H 129 130 /* Define to 1 if you have the <string.h> header file. */ 131 #define HAVE_STRING_H 1 132 133 /* Define to 1 if you have the `strtol' function. */ 134 #define HAVE_STRTOL 1 135 136 /* Define to 1 if you have the `strtoul' function. */ 137 #define HAVE_STRTOUL 1 138 139 /* Define to 1 if you have the <sys/stat.h> header file. */ 140 #define HAVE_SYS_STAT_H 1 141 142 /* Define to 1 if you have the <sys/types.h> header file. */ 143 #define HAVE_SYS_TYPES_H 1 144 145 /* Define to 1 if you have the <unistd.h> header file. */ 146 #undef HAVE_UNISTD_H 147 148 /* Define to 1 if you have the `vprintf' function. */ 149 #define HAVE_VPRINTF 1 150 151 /* Define if you need to hide the static definitions of inline functions */ 152 #define HIDE_INLINE_STATIC 1 153 154 /* Define to the sub-directory in which libtool stores uninstalled libraries. 155 */ 156 #undef LT_OBJDIR 157 158 /* Name of package */ 159 #define PACKAGE "Win-32 VC++ DG" 160 161 /* Define to the address where bug reports for this package should be sent. */ 162 #undef PACKAGE_BUGREPORT 163 164 /* Define to the full name of this package. */ 165 #undef PACKAGE_NAME 166 167 /* Define to the full name and version of this package. */ 168 #undef PACKAGE_STRING 169 170 /* Define to the one symbol short name of this package. */ 171 #undef PACKAGE_TARNAME 172 173 /* Define to the version of this package. */ 174 #undef PACKAGE_VERSION 175 176 /* Defined if this is an official release */ 177 #define RELEASED 1 178 179 /* Define to 1 if you have the ANSI C header files. */ 180 #define STDC_HEADERS 0 181 182 /* Version number of package */ 183 #define VERSION 1 184 185 #ifndef __CHAR_UNSIGNED__ 186 #define __CHAR_UNSIGNED__ 187 #endif 188 189 /* Define as `__inline' if that's what the C compiler calls it, or to nothing 190 if it is not supported. */ 191 #define inline __inline 192 193 /* Define to `unsigned' if <sys/types.h> does not define. */ 194 //#undef size_t 195 196 /* Define to empty if the keyword `volatile' does not work. Warning: valid 197 code using `volatile' can become incorrect without. Disable with care. */ 198 //#undef volatile 199 200 /* Use 0 and 1 for EXIT_SUCCESS and EXIT_FAILURE if we don't have them */ 201 #if !HAVE_EXIT_SUCCESS_AND_FAILURE 202 #define EXIT_SUCCESS 0 203 #define EXIT_FAILURE 1 204 #endif 205 206 /* Define one of these if you have a known IEEE arithmetic interface */ 207 #undef HAVE_GNUSPARC_IEEE_INTERFACE 208 #undef HAVE_GNUM68K_IEEE_INTERFACE 209 #undef HAVE_GNUPPC_IEEE_INTERFACE 210 #undef HAVE_GNUX86_IEEE_INTERFACE 211 #undef HAVE_SUNOS4_IEEE_INTERFACE 212 #undef HAVE_SOLARIS_IEEE_INTERFACE 213 #undef HAVE_HPUX11_IEEE_INTERFACE 214 #undef HAVE_HPUX_IEEE_INTERFACE 215 #undef HAVE_TRU64_IEEE_INTERFACE 216 #undef HAVE_IRIX_IEEE_INTERFACE 217 #undef HAVE_AIX_IEEE_INTERFACE 218 #undef HAVE_FREEBSD_IEEE_INTERFACE 219 #undef HAVE_OS2EMX_IEEE_INTERFACE 220 #undef HAVE_NETBSD_IEEE_INTERFACE 221 #undef HAVE_OPENBSD_IEEE_INTERFACE 222 #undef HAVE_DARWIN_IEEE_INTERFACE 223 224 /* Define a rounding function which moves extended precision values 225 out of registers and rounds them to double-precision. This should 226 be used *sparingly*, in places where it is necessary to keep 227 double-precision rounding for critical expressions while running in 228 extended precision. For example, the following code should ensure 229 exact equality, even when extended precision registers are in use, 230 231 double q = GSL_COERCE_DBL(3.0/7.0) ; 232 if (q == GSL_COERCE_DBL(3.0/7.0)) { ... } ; 233 234 It carries a penalty even when the program is running in double 235 precision mode unless you compile a separate version of the 236 library with HAVE_EXTENDED_PRECISION_REGISTERS turned off. */ 237 238 #if HAVE_EXTENDED_PRECISION_REGISTERS 239 #define GSL_COERCE_DBL(x) (gsl_coerce_double(x)) 240 #else 241 #define GSL_COERCE_DBL(x) (x) 242 #endif 243 244 /* Substitute gsl functions for missing system functions */ 245 246 #if !HAVE_DECL_HYPOT 247 #define hypot gsl_hypot 248 //#define hypot _hypot 249 #endif 250 251 #if !HAVE_DECL_LOG1P 252 #define log1p gsl_log1p 253 #endif 254 255 #if !HAVE_DECL_EXPM1 256 #define expm1 gsl_expm1 257 #endif 258 259 #if !HAVE_DECL_ACOSH 260 #define acosh gsl_acosh 261 #endif 262 263 #if !HAVE_DECL_ASINH 264 #define asinh gsl_asinh 265 #endif 266 267 #if !HAVE_DECL_ATANH 268 #define atanh gsl_atanh 269 #endif 270 271 #if !HAVE_DECL_LDEXP 272 #define ldexp gsl_ldexp 273 #endif 274 275 #if !HAVE_DECL_FREXP 276 #define frexp gsl_frexp 277 #endif 278 279 #if !HAVE_DECL_ISINF 280 #define isinf gsl_isinf 281 #endif 282 283 #if !HAVE_DECL_FINITE 284 #if HAVE_DECL_ISFINITE 285 #define finite isfinite 286 #else 287 //� #define finite gsl_finite 288 #define finite _finite 289 #endif 290 #endif 291 292 #if !HAVE_DECL_ISNAN 293 //� #define isnan gsl_isnan 294 #define isnan _isnan 295 #endif 296 297 #ifdef __GNUC__ 298 #define DISCARD_POINTER(p) do { ; } while(p ? 0 : 0); 299 #else 300 #define DISCARD_POINTER(p) /* ignoring discarded pointer */ 301 #endif 302 303 #if defined(GSL_RANGE_CHECK_OFF) || !defined(GSL_RANGE_CHECK) 304 #define GSL_RANGE_CHECK 0 /* turn off range checking by default */ 305 #endif 306 307 #define RETURN_IF_NULL(x) if (!x) { return ; } 308 309 #define _USE_MATH_DEFINES 310 311 // Remove loss in conversion 312 #pragma warning( disable : 4244) 313 314 315 316 317 318 #else // _MSC_VER 319 320 321 /* config.h. Generated from config.h.in by configure. */ 322 /* config.h.in. Generated from configure.ac by autoheader. */ 323 324 /* Disable deprecated functions and enums while building */ 325 #define GSL_DISABLE_DEPRECATED 1 326 327 /* Define if you have inline with C99 behavior */ 328 /* #undef HAVE_C99_INLINE */ 329 330 /* Define to 1 if you have the declaration of `acosh', and to 0 if you don't. 331 */ 332 #define HAVE_DECL_ACOSH 1 333 334 /* Define to 1 if you have the declaration of `asinh', and to 0 if you don't. 335 */ 336 #define HAVE_DECL_ASINH 1 337 338 /* Define to 1 if you have the declaration of `atanh', and to 0 if you don't. 339 */ 340 #define HAVE_DECL_ATANH 1 341 342 /* Define to 1 if you have the declaration of `expm1', and to 0 if you don't. 343 */ 344 #define HAVE_DECL_EXPM1 1 345 346 /* Define to 1 if you have the declaration of `feenableexcept', and to 0 if 347 you don't. */ 348 #define HAVE_DECL_FEENABLEEXCEPT 1 349 350 /* Define to 1 if you have the declaration of `fesettrapenable', and to 0 if 351 you don't. */ 352 #define HAVE_DECL_FESETTRAPENABLE 0 353 354 /* Define to 1 if you have the declaration of `finite', and to 0 if you don't. 355 */ 356 #define HAVE_DECL_FINITE 1 357 358 /* Define to 1 if you have the declaration of `frexp', and to 0 if you don't. 359 */ 360 #define HAVE_DECL_FREXP 1 361 362 /* Define to 1 if you have the declaration of `hypot', and to 0 if you don't. 363 */ 364 #define HAVE_DECL_HYPOT 1 365 366 /* Define to 1 if you have the declaration of `isfinite', and to 0 if you 367 don't. */ 368 #define HAVE_DECL_ISFINITE 1 369 370 /* Define to 1 if you have the declaration of `isinf', and to 0 if you don't. 371 */ 372 #define HAVE_DECL_ISINF 1 373 374 /* Define to 1 if you have the declaration of `isnan', and to 0 if you don't. 375 */ 376 #define HAVE_DECL_ISNAN 1 377 378 /* Define to 1 if you have the declaration of `ldexp', and to 0 if you don't. 379 */ 380 #define HAVE_DECL_LDEXP 1 381 382 /* Define to 1 if you have the declaration of `log1p', and to 0 if you don't. 383 */ 384 #define HAVE_DECL_LOG1P 1 385 386 /* Define to 1 if you have the <dlfcn.h> header file. */ 387 #define HAVE_DLFCN_H 1 388 389 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ 390 /* #undef HAVE_DOPRNT */ 391 392 /* Defined if you have ansi EXIT_SUCCESS and EXIT_FAILURE in stdlib.h */ 393 #define HAVE_EXIT_SUCCESS_AND_FAILURE 1 394 395 /* Defined on architectures with excess floating-point precision */ 396 #define HAVE_EXTENDED_PRECISION_REGISTERS 1 397 398 /* Define if x86 processor has sse extensions. */ 399 #define HAVE_FPU_X86_SSE 1 400 401 /* Define to 1 if you have the <ieeefp.h> header file. */ 402 /* #undef HAVE_IEEEFP_H */ 403 404 /* Define this if IEEE comparisons work correctly (e.g. NaN != NaN) */ 405 #define HAVE_IEEE_COMPARISONS 1 406 407 /* Define this if IEEE denormalized numbers are available */ 408 #define HAVE_IEEE_DENORMALS 1 409 410 /* Define if you have inline */ 411 #define HAVE_INLINE 1 412 413 /* Define to 1 if you have the <inttypes.h> header file. */ 414 #define HAVE_INTTYPES_H 1 415 416 /* Define to 1 if you have the `m' library (-lm). */ 417 #define HAVE_LIBM 1 418 419 /* Define to 1 if you have the `memcpy' function. */ 420 #define HAVE_MEMCPY 1 421 422 /* Define to 1 if you have the `memmove' function. */ 423 #define HAVE_MEMMOVE 1 424 425 /* Define to 1 if you have the <memory.h> header file. */ 426 #define HAVE_MEMORY_H 1 427 428 /* Define this if printf can handle %Lf for long double */ 429 #define HAVE_PRINTF_LONGDOUBLE 1 430 431 /* Define to 1 if you have the <stdint.h> header file. */ 432 #define HAVE_STDINT_H 1 433 434 /* Define to 1 if you have the <stdlib.h> header file. */ 435 #define HAVE_STDLIB_H 1 436 437 /* Define to 1 if you have the `strdup' function. */ 438 #define HAVE_STRDUP 1 439 440 /* Define to 1 if you have the <strings.h> header file. */ 441 #define HAVE_STRINGS_H 1 442 443 /* Define to 1 if you have the <string.h> header file. */ 444 #define HAVE_STRING_H 1 445 446 /* Define to 1 if you have the `strtol' function. */ 447 #define HAVE_STRTOL 1 448 449 /* Define to 1 if you have the `strtoul' function. */ 450 #define HAVE_STRTOUL 1 451 452 /* Define to 1 if you have the <sys/stat.h> header file. */ 453 #define HAVE_SYS_STAT_H 1 454 455 /* Define to 1 if you have the <sys/types.h> header file. */ 456 #define HAVE_SYS_TYPES_H 1 457 458 /* Define to 1 if you have the <unistd.h> header file. */ 459 #define HAVE_UNISTD_H 1 460 461 /* Define to 1 if you have the `vprintf' function. */ 462 #define HAVE_VPRINTF 1 463 464 /* Define if you need to hide the static definitions of inline functions */ 465 /* #undef HIDE_INLINE_STATIC */ 466 467 /* Define to the sub-directory in which libtool stores uninstalled libraries. 468 */ 469 #define LT_OBJDIR ".libs/" 470 471 /* Name of package */ 472 #define PACKAGE "gsl" 473 474 /* Define to the address where bug reports for this package should be sent. */ 475 #define PACKAGE_BUGREPORT "" 476 477 /* Define to the full name of this package. */ 478 #define PACKAGE_NAME "gsl" 479 480 /* Define to the full name and version of this package. */ 481 #define PACKAGE_STRING "gsl 1.14" 482 483 /* Define to the one symbol short name of this package. */ 484 #define PACKAGE_TARNAME "gsl" 485 486 /* Define to the home page for this package. */ 487 #define PACKAGE_URL "" 488 489 /* Define to the version of this package. */ 490 #define PACKAGE_VERSION "1.14" 491 492 /* Defined if this is an official release */ 493 #define RELEASED /**/ 494 495 /* Define to 1 if you have the ANSI C header files. */ 496 #define STDC_HEADERS 1 497 498 /* Version number of package */ 499 #define VERSION "1.14" 500 501 /* Define to 1 if type `char' is unsigned and you are not using gcc. */ 502 #ifndef __CHAR_UNSIGNED__ 503 /* # undef __CHAR_UNSIGNED__ */ 504 #endif 505 506 /* Define to `__inline__' or `__inline' if that's what the C compiler 507 calls it, or to nothing if 'inline' is not supported under any name. */ 508 #ifndef __cplusplus 509 /* #undef inline */ 510 #endif 511 512 /* Define to `unsigned int' if <sys/types.h> does not define. */ 513 /* #undef size_t */ 514 515 /* Define to empty if the keyword `volatile' does not work. Warning: valid 516 code using `volatile' can become incorrect without. Disable with care. */ 517 /* #undef volatile */ 518 519 /* Use 0 and 1 for EXIT_SUCCESS and EXIT_FAILURE if we don't have them */ 520 #if !HAVE_EXIT_SUCCESS_AND_FAILURE 521 #define EXIT_SUCCESS 0 522 #define EXIT_FAILURE 1 523 #endif 524 525 /* Define one of these if you have a known IEEE arithmetic interface */ 526 /* #undef HAVE_GNUSPARC_IEEE_INTERFACE */ 527 /* #undef HAVE_GNUM68K_IEEE_INTERFACE */ 528 /* #undef HAVE_GNUPPC_IEEE_INTERFACE */ 529 /* #define HAVE_GNUX86_IEEE_INTERFACE 1*/ 530 /* #undef HAVE_SUNOS4_IEEE_INTERFACE */ 531 /* #undef HAVE_SOLARIS_IEEE_INTERFACE */ 532 /* #undef HAVE_HPUX11_IEEE_INTERFACE */ 533 /* #undef HAVE_HPUX_IEEE_INTERFACE */ 534 /* #undef HAVE_TRU64_IEEE_INTERFACE */ 535 /* #undef HAVE_IRIX_IEEE_INTERFACE */ 536 /* #undef HAVE_AIX_IEEE_INTERFACE */ 537 /* #undef HAVE_FREEBSD_IEEE_INTERFACE */ 538 /* #undef HAVE_OS2EMX_IEEE_INTERFACE */ 539 /* #undef HAVE_NETBSD_IEEE_INTERFACE */ 540 /* #undef HAVE_OPENBSD_IEEE_INTERFACE */ 541 /* #undef HAVE_DARWIN_IEEE_INTERFACE */ 542 /* #undef HAVE_DARWIN86_IEEE_INTERFACE */ 543 544 /* Define a rounding function which moves extended precision values 545 out of registers and rounds them to double-precision. This should 546 be used *sparingly*, in places where it is necessary to keep 547 double-precision rounding for critical expressions while running in 548 extended precision. For example, the following code should ensure 549 exact equality, even when extended precision registers are in use, 550 551 double q = GSL_COERCE_DBL(3.0/7.0) ; 552 if (q == GSL_COERCE_DBL(3.0/7.0)) { ... } ; 553 554 It carries a penalty even when the program is running in double 555 precision mode unless you compile a separate version of the 556 library with HAVE_EXTENDED_PRECISION_REGISTERS turned off. */ 557 558 #if HAVE_EXTENDED_PRECISION_REGISTERS 559 #define GSL_COERCE_DBL(x) (gsl_coerce_double(x)) 560 #else 561 #define GSL_COERCE_DBL(x) (x) 562 #endif 563 564 /* Substitute gsl functions for missing system functions */ 565 566 #if !HAVE_DECL_HYPOT 567 #define hypot gsl_hypot 568 #endif 569 570 #if !HAVE_DECL_LOG1P 571 #define log1p gsl_log1p 572 #endif 573 574 #if !HAVE_DECL_EXPM1 575 #define expm1 gsl_expm1 576 #endif 577 578 #if !HAVE_DECL_ACOSH 579 #define acosh gsl_acosh 580 #endif 581 582 #if !HAVE_DECL_ASINH 583 #define asinh gsl_asinh 584 #endif 585 586 #if !HAVE_DECL_ATANH 587 #define atanh gsl_atanh 588 #endif 589 590 #if !HAVE_DECL_LDEXP 591 #define ldexp gsl_ldexp 592 #endif 593 594 #if !HAVE_DECL_FREXP 595 #define frexp gsl_frexp 596 #endif 597 598 #if !HAVE_DECL_ISINF 599 #define isinf gsl_isinf 600 #endif 601 602 #if !HAVE_DECL_FINITE 603 #define finite gsl_finite 604 #endif 605 606 #if !HAVE_DECL_ISNAN 607 #define isnan gsl_isnan 608 #endif 609 610 #ifdef __GNUC__ 611 #define DISCARD_POINTER(p) do { ; } while(p ? 0 : 0); 612 #else 613 #define DISCARD_POINTER(p) /* ignoring discarded pointer */ 614 #endif 615 616 #if defined(GSL_RANGE_CHECK_OFF) || !defined(GSL_RANGE_CHECK) 617 #define GSL_RANGE_CHECK 0 /* turn off range checking by default internally */ 618 #endif 619 620 #define RETURN_IF_NULL(x) if (!x) { return ; } 621 622 #endif 623