You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce:
In Visual Studio 2010, create an application that includes stdint.h from
msinttypes as well as the compiler's included stdint.h.
Attempt to build it. You will receive several compiler warnings about
redefinition of macros, typedefs, etc.
Solution:
Within stdint.h, if the compiler provides its own stdint.h, include the
compiler's version rather than manually defining everything, e.g...
#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]
#ifndef _MSC_STDINT_H_ // [
#define _MSC_STDINT_H_
#if _MSC_VER > 1000
#pragma once
#endif
#if _MSC_VER >= 1600
#include <stdint.h>
#else
// ...remainder of file...
#endif
Original issue reported on code.google.com by louse...@gmail.com on 5 Jan 2011 at 9:58
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
louse...@gmail.com
on 5 Jan 2011 at 9:58The text was updated successfully, but these errors were encountered: