Missing stddef.h include in juce_BasicNativeHeaders.h


#1

Git tip won’t compile, giving the following error:

In file included from ../../../../modules/juce_audio_formats/juce_audio_formats.cpp:114:0:
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp: In member function ‘void juce::WavFileHelpers::BWAVChunk::copyTo(juce::StringPairArray&, int) const’:
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:102:89: error: expected primary-expression before ‘,’ token
../../../../modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp:102:104: error: ‘offsetof’ was not declared in this scope

Fixed this way:

diff --git a/modules/juce_core/native/juce_BasicNativeHeaders.h b/modules/juce_core/native/juce_BasicNativeHeaders.h
index 40ef0b1..5eda355 100644
--- a/modules/juce_core/native/juce_BasicNativeHeaders.h
+++ b/modules/juce_core/native/juce_BasicNativeHeaders.h
@@ -182,6 +182,7 @@
  #include <sys/file.h>
  #include <sys/prctl.h>
  #include <signal.h>
+ #include <stddef.h>
 
 //==============================================================================
 #elif JUCE_ANDROID

#2

Ah, sorry, didn’t check the linux build for that. Thanks!