diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-07-19 14:25:14 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-07-19 14:25:14 +0200 |
| commit | 069a6b430b248aace1ec0f1a72099e95f046a68d (patch) | |
| tree | a9784fd3cecc56a8504feeb569c155838f9ab5c5 /FL/platform_types.h | |
| parent | 1e890ea4e4ba00a66743cc97b89dfd4991167ce1 (diff) | |
Enable compilation with VS 2022 and clang (#752)
Ensure that <stdint.h> is included in Visual Studio 2010 and later
(_MSC_VER >= 1600).
Diffstat (limited to 'FL/platform_types.h')
| -rw-r--r-- | FL/platform_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h index 421a0b7c6..fd2dced5d 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -1,5 +1,5 @@ /* - * Copyright 2016-2022 by Bill Spitzak and others. + * Copyright 2016-2023 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 @@ -96,8 +96,8 @@ typedef opaque Fl_Timestamp; #ifdef _WIN64 -#if defined(_MSC_VER) -# include <stddef.h> /* M$VC */ +#if defined(_MSC_VER) && (_MSC_VER < 1600) +# include <stddef.h> /* stdint.h not available before VS 2010 (1600) */ #else # include <stdint.h> #endif |
