Mercurial > octave
changeset 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 | c33e721c01d7 |
children | 6267807eb70b |
files | oct-conf-post.in.h |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
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