mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 23:06:54 +08:00
Enable compilation with VS 2022 and clang (#752)
Ensure that <stdint.h> is included in Visual Studio 2010 and later (_MSC_VER >= 1600).
This commit is contained in:
+3
-3
@@ -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
|
* 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
|
* the file "COPYING" which should have been included with this file. If this
|
||||||
@@ -96,8 +96,8 @@ typedef opaque Fl_Timestamp;
|
|||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
# include <stddef.h> /* M$VC */
|
# include <stddef.h> /* stdint.h not available before VS 2010 (1600) */
|
||||||
#else
|
#else
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user