Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for native bool on Visual C++ build #754

Closed
matthiasblaesing opened this issue Jan 18, 2017 · 0 comments
Closed

Support for native bool on Visual C++ build #754

matthiasblaesing opened this issue Jan 18, 2017 · 0 comments

Comments

@matthiasblaesing
Copy link
Member

Currently the unittest NativeTest#testSizeof fails for bool when the binaries are build with the Microsoft SDK for Windows 7.1. The problem is located in dispatch.c: (line 123):

#ifdef __cplusplus
extern "C" {
#else
#if defined(_MSC_VER)
// At least until I upgrace to 2013-era MSVS
typedef int bool;
#define true 1
#define false 0
#else
#include <stdbool.h>
#endif
#endif

in this case the defined bool type has the same size as int (4 bytes), which conflicts with mingw + gcc (both 1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant