Comments (4)
Can I wrap this in an #ifdef
? I'm not sure how this is supposed to work.
Another idea is just to #include <stdbool.h>
if we can assume it exists.
from dukluv.
I believe VS2013 and later includes stdbool.h
. I'd recommend:
#if _MSC_VER >= 1800
#include <stdbool.h>
#else
typedef enum { false, true } bool;
#endif
from dukluv.
Sounds good. Did you want to send a PR?
from dukluv.
Sure. :)
from dukluv.
Related Issues (18)
- Tiny devices HOT 14
- DESTDIR ignored by make install HOT 3
- No console.log available (only print?) HOT 10
- Passing on C argv to the script environment HOT 12
- Wrong submodule HOT 3
- Check if it need rt library. HOT 1
- Cross compiling to windows using mingw fails HOT 1
- TCP Server fails with uncaught exception HOT 23
- Binary download HOT 5
- Build error on macOS HOT 4
- Failure in window operation HOT 1
- NOT AN ISSUE : build on windows with cmake 3.4 and mingw32
- documentation of the js builtin API
- How close does this get us to a useful subset of Node?
- dukluv binding for duktape 2.6.0 is throwing an uncaught execption HOT 1
- Integer-to-NULL comparison in dukluv/fs.c HOT 1
- Bug with absolute filepath in argument 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 dukluv.