Mercurial > octave
diff oct-conf-post.in.h @ 22012:22a272df4ac4
restore API macros to oct-conf-post.h removed in cset 6bce4d23af6b
* oct-conf-post.in.h (OCTAVE_USE_WINDOWS_API, OCTAVE_USE_OS_X_API):
Restore definitions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 30 Jun 2016 17:35:58 -0400 |
parents | 6bce4d23af6b |
children | 9b832e9caae6 |
line wrap: on
line diff
--- a/oct-conf-post.in.h Thu Jun 30 17:04:34 2016 -0400 +++ b/oct-conf-post.in.h Thu Jun 30 17:35:58 2016 -0400 @@ -80,7 +80,16 @@ # pragma warning (disable: 4661) #endif +#if defined (__APPLE__) && defined (__MACH__) +# define OCTAVE_USE_OS_X_API 1 +#endif + +/* Define to 1 if we expect to have <windows.h>, Sleep, etc. */ #if defined (__WIN32__) && ! defined (__CYGWIN__) +# define OCTAVE_USE_WINDOWS_API 1 +#endif + +#if defined (OCTAVE_USE_WINDOWS_API) # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 #elif defined (__CYGWIN__) # define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1