JUCE has provided many cross-platform C++ utilities, among them juce::int64
, but nowadays it seems that C++ has had a standard int64_t
for a while now.
Mostly the two are interchangeable, but it seems that in Linux Makefile based builds, juce::int64
is typedef
to long long
, while int64_t
is typedef
to long
. Both are 64-bit but when one override
s JUCE methods one has to use the juce::int64
specifically.
The problem is that if one usually develops in Xcode and Visual Studio and has a preference towards standard types like int64_t
, then their code won’t compile on Linux, and it’s just another extra hurdle to deal with among all the other computing paper cuts
Suggestions:
- Make
juce::int64
a typedef toint64_t
- Recommend using
int64_t
- Deprecate
juce::int64
Cheers, Yair