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

Automatic detection of CBF_DONT_USE_LONG_LONG #24

Open
ketsubouchi opened this issue Feb 15, 2021 · 0 comments
Open

Automatic detection of CBF_DONT_USE_LONG_LONG #24

ketsubouchi opened this issue Feb 15, 2021 · 0 comments

Comments

@ketsubouchi
Copy link

CBF_DONT_USE_LONG_LONG could be automated.

Create this checkint.c

#include <limits.h>
#if LONG_MAX == LLONG_MAX
#error LONG=LLONG
#endif

Detect by return code such as

$(CC) -E checkint.c || echo #define CBF_DONT_USE_LONG_LONG >> longflag.h

and add #include "longflag.h" to cbf.h

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