Mercurial > jwe > octave
changeset 26979:eebf4b67f012
Silence warning on Mac platforms about deprecated OpenGL API (bug #55991).
* oct-conf-post.in.h: If on Mac, and building OpenGL plotting, define
GL_SILENCE_DEPRECATION so that hundreds of warnings aren't printed.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 25 Mar 2019 20:31:15 -0700 |
parents | de826e69a5ea |
children | 10cc5bf3dbb1 |
files | oct-conf-post.in.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/oct-conf-post.in.h Tue Mar 26 02:42:38 2019 +0000 +++ b/oct-conf-post.in.h Mon Mar 25 20:31:15 2019 -0700 @@ -124,6 +124,11 @@ # define OCTAVE_USE_OS_X_API 1 #endif +/* Silence deprecated API warning from Apple OS > 10.14 */ +#if defined (__APPLE__) && defined (__MACH__) && defined (HAVE_OPENGL) +# define GL_SILENCE_DEPRECATION 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