WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 767649a

Browse files
committed
Fix missing include on some systems to use intptr_t. (#2036, #2054)
1 parent 5d40d29 commit 767649a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

imgui_widgets.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Index of this file:
3333
#include "imgui_internal.h"
3434

3535
#include <ctype.h> // toupper, isprint
36+
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
37+
#include <stddef.h> // intptr_t
38+
#else
39+
#include <stdint.h> // intptr_t
40+
#endif
3641

3742
// Visual Studio warnings
3843
#ifdef _MSC_VER

0 commit comments

Comments
 (0)