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

variable name byte sometimes used as a #define #1792

Closed
SmartMobileLabs opened this issue Oct 15, 2019 · 3 comments
Closed

variable name byte sometimes used as a #define #1792

SmartMobileLabs opened this issue Oct 15, 2019 · 3 comments
Labels
kind: question platform: android related to Android NDK solution: invalid the issue is not related to the library

Comments

@SmartMobileLabs
Copy link

  • What is the issue you have?
    in an android enironment/clang the string byte seems to be #defined to "uint8_t" which causes compilation to fail. The problem i face is in function dump_escape

I am using version 3.6.1

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?
    released version 3.6.1 (file json.hpp) from the projects github download page

  • If you experience a compilation error: can you compile and run the unit tests?

@nlohmann
Copy link
Owner

Which library makes the define of byte?

@nlohmann nlohmann added kind: question platform: android related to Android NDK state: needs more info the author of the issue needs to provide more details and removed kind: bug labels Oct 15, 2019
@SmartMobileLabs
Copy link
Author

Hi - I found the culprit in one of our own libraries - which is strange as it worked for ubuntu and gcc. But as it is not too much work I would suggest to not use this variable name....
So no action needed and thanks for making me go through our libraries ;-)

@nlohmann nlohmann added solution: invalid the issue is not related to the library and removed state: needs more info the author of the issue needs to provide more details labels Oct 16, 2019
@nlohmann
Copy link
Owner

Thanks for checking back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question platform: android related to Android NDK solution: invalid the issue is not related to the library
Projects
None yet
Development

No branches or pull requests

2 participants