Comments (4)
Sorry, not uint8t, but int_8t
Original comment by [email protected]
on 21 May 2008 at 12:49
from msinttypes.
Does adding 'signed' to int*_t typedefs solved your problem? By Standard
'signed' is
assumed when missing, so 'singed int' = 'int' and compiler should not
differentiate
them.
From what I see I would rather say that we need to surround these typedefs with
#ifdef guards. And even better, I would recommend to use my version of
<stdint.h>
and <inttypes.h> instead of one, embedded in SDL. To do this you just need to
include it before any SDL includes, define HAVE_STDINT_H and HAVE_INTTYPES_H,
and
remove all these declarations from SDL_config_win32.h. It may be also good to
try to
push these changes to SDL mainline.
Original comment by alexander.chemeris
on 26 May 2008 at 9:31
from msinttypes.
Yes, adding 'signed' has solved the problem.
MSVC is known to not to fully support the standard.
I tried including <stdint.h> and <inttypes.h>, this didn't help.
SDL doesn't have these files, it simply defines necessary types in one of its
headers.
Original comment by [email protected]
on 26 May 2008 at 8:16
from msinttypes.
I was in doubt about this issue for a long time, but finally decided to not
"fix"
it. I looked at search results for "typedef __int8 int8_t" and it looks for me
that
this "fix" will break the same as fix, because a lot of other projects do not
add "signed" to these typdefs.
So, again, I propose to fix this in SDL - either using these implementation
instead
of their own homebrew one or removing "signed" from them or any other way you
find
suitable.
Anyway, thanks for reporting this!
Original comment by [email protected]
on 17 Jul 2008 at 6:17
- Changed state: WontFix
from msinttypes.
Related Issues (16)
- Compiler warnings when included in conjunction with VS2010's stdint.h. HOT 2
- misprint in stdint.h causing vc6 compilation problem HOT 1
- stdint.h is not available with Visual Studio 2012 HOT 3
- #include <stdint.h> HOT 2
- #ifdef __cplusplus in stdint.h HOT 1
- Fix trailing whitespace
- Match the msvc stdint header for fast int types
- [VS 2008] SmartDevice Win32 Project: second C linkage of overloaded function HOT 8
- incorect type declarations on evc4 HOT 2
- int8_t becomes unsigned when /J is specified HOT 3
- Build error when stdint.h is not in the project's include paths list HOT 1
- fast types should match native word size HOT 1
- license bug HOT 1
- INTn_MIN, INTn_MAX violate C99 specification
- Annoying compilation warnings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msinttypes.