diff src/display-available.h @ 19819:299fe39163a2

avoid C-style cast warnings from GCC * src/display-available.h, src/display-available.c: New files. Move display detection here from main.in.cc. * src/main.in.cc (main): Adapt to new C definition of display_available. * Makefile.am (octave_SOURCES): New variable.
author John W. Eaton <jwe@octave.org>
date Fri, 20 Feb 2015 03:55:59 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/display-available.h	Fri Feb 20 03:55:59 2015 -0500
@@ -0,0 +1,32 @@
+/*
+
+Copyright (C) 2012-2015 John W. Eaton
+
+This file is part of Octave.
+
+Octave is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 3 of the License, or (at your
+option) any later version.
+
+Octave is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with Octave; see the file COPYING.  If not, see
+<http://www.gnu.org/licenses/>.
+
+*/
+
+#ifdef __cplusplus
+#include <new>
+extern "C" {
+#endif
+
+extern const char *display_available (int *dpy_avail);
+
+#ifdef __cplusplus
+}
+#endif