-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Fix includes in arg.cpp and gemma3-cli.cpp #12766
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
Conversation
I think cinttype is not necessary in gemma3-cli, isn't it ? |
As long as |
I mean, the code of this example is the same as all other examples. If you're changing this in one example you should either:
|
It is not. It is the only file here which uses llama.cpp/examples/llava/gemma3-cli.cpp Line 173 in 7a84777
In every other place cinttypes is already included. __STDC_FORMAT_MACROS are not defined, but my compiler is satisfied with just cinttypes , so I did not get errors on other files. But some compilers still need __STDC_FORMAT_MACROS even with cinttypes .
But you are right, identical change should be made in other places as well. |
I think _STDC_FORMAT_MACROS should be removed
@ngxson Ok, I drop them, and change the header in |
@ngxson @ggerganov Done |
Thanks for merging! |
* arg.cpp: add a missing include * gemma3-cli.cpp: fix cinttypes include
* arg.cpp: add a missing include * gemma3-cli.cpp: fix cinttypes include
Wonder how this was missed. The source uses
filesystem
, but does not include it.