From 7a879568b3fd16ce84ee4fa3e268272eb53fc590 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 2 Apr 2024 15:26:36 +0200 Subject: Improve support for NetBSD (#944) - fix gcc version check for FL_DEPRECATED macro - fix #include for select() on NetBSD < 3.0 (#944) For more info please see GitHub Issue #944 --- FL/fl_attr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FL') diff --git a/FL/fl_attr.h b/FL/fl_attr.h index 52b350754..46d4cb793 100644 --- a/FL/fl_attr.h +++ b/FL/fl_attr.h @@ -1,7 +1,7 @@ /* * Function attribute declarations for the Fast Light Tool Kit (FLTK). * - * Copyright 1998-2023 by Bill Spitzak and others. + * Copyright 1998-2024 by Bill Spitzak and others. * * This library is free software. Distribution and use rights are outlined in * the file "COPYING" which should have been included with this file. If this @@ -168,11 +168,11 @@ #endif #endif /* gcc 4.5.0 */ -#if FL_GCC_VERSION > 30100 /* gcc 3.1.0 */ +#if FL_GCC_VERSION >= 30400 /* gcc 3.4.0 */ #ifndef FL_DEPRECATED #define FL_DEPRECATED(msg, func) func __attribute__((deprecated)) #endif -#endif /* gcc 3.1.0 */ +#endif /* gcc 3.4.0 */ #endif /* __GNUC__ */ -- cgit v1.2.3