Commit fb4c1277 authored by Alexandre Julliard's avatar Alexandre Julliard

libport: Don't build some functions that aren't needed on Windows.

parent ea7b8ad9
...@@ -86,6 +86,30 @@ typedef int ssize_t; ...@@ -86,6 +86,30 @@ typedef int ssize_t;
# endif # endif
#endif #endif
#ifndef HAVE_ISFINITE
int isfinite(double x);
#endif
#ifndef HAVE_ISINF
int isinf(double x);
#endif
#ifndef HAVE_ISNAN
int isnan(double x);
#endif
/* Process creation flags */
#ifndef _P_WAIT
# define _P_WAIT 0
# define _P_NOWAIT 1
# define _P_OVERLAY 2
# define _P_NOWAITO 3
# define _P_DETACH 4
#endif
#ifndef HAVE__SPAWNVP
extern int _spawnvp(int mode, const char *cmdname, const char * const argv[]);
#endif
#endif /* _WIN32 */ #endif /* _WIN32 */
/**************************************************************** /****************************************************************
...@@ -237,18 +261,6 @@ extern int getopt_long_only (int ___argc, char *const *___argv, ...@@ -237,18 +261,6 @@ extern int getopt_long_only (int ___argc, char *const *___argv,
int ffs( int x ); int ffs( int x );
#endif #endif
#ifndef HAVE_ISFINITE
int isfinite(double x);
#endif
#ifndef HAVE_ISINF
int isinf(double x);
#endif
#ifndef HAVE_ISNAN
int isnan(double x);
#endif
#ifndef HAVE_LLRINT #ifndef HAVE_LLRINT
__int64 llrint(double x); __int64 llrint(double x);
#endif #endif
...@@ -323,18 +335,6 @@ int usleep (unsigned int useconds); ...@@ -323,18 +335,6 @@ int usleep (unsigned int useconds);
extern int mkstemps(char *template, int suffix_len); extern int mkstemps(char *template, int suffix_len);
/* Process creation flags */
#ifndef _P_WAIT
# define _P_WAIT 0
# define _P_NOWAIT 1
# define _P_OVERLAY 2
# define _P_NOWAITO 3
# define _P_DETACH 4
#endif
#ifndef HAVE__SPAWNVP
extern int _spawnvp(int mode, const char *cmdname, const char * const argv[]);
#endif
/* Interlocked functions */ /* Interlocked functions */
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#ifndef HAVE_ISFINITE #if !defined(HAVE_ISFINITE) && !defined(isfinite)
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
#include <ieeefp.h> #include <ieeefp.h>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#ifndef HAVE_ISINF #if !defined(HAVE_ISINF) && !defined(isinf)
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
#include <ieeefp.h> #include <ieeefp.h>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#ifndef HAVE_ISNAN #if !defined(HAVE_ISNAN) && !defined(isnan)
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H
#include <ieeefp.h> #include <ieeefp.h>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "config.h" #include "config.h"
#include "wine/port.h" #include "wine/port.h"
#ifndef HAVE__SPAWNVP #if !defined(HAVE__SPAWNVP) && !defined(_WIN32)
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment