# Libpng multiple inclusion fix

**URL:** <https://forum.juce.com/t/libpng-multiple-inclusion-fix/10716>\
**Category:** General JUCE discussion\
**Created:** [July 2, 2013, 2:26pm UTC](https://forum.juce.com/t/libpng-multiple-inclusion-fix/10716 "2013-07-02T14:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahilagnihotri](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sahilagnihotri/32/238_2.png) [@sahilagnihotri](https://forum.juce.com/u/sahilagnihotri)\
**Post date:** [July 2, 2013, 2:26pm UTC](https://forum.juce.com/t/libpng-multiple-inclusion-fix/10716/1 "2013-07-02T14:26:55Z")

</div>

Hey ,

I had a conflict with multiple inclusion of libpng so I had to comment out the extern “C”{ under #ifdef \_cplucplus and its following } when def is closing  
in files png.h and pngpriv.h and it works .

//sahil

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 2, 2013, 3:05pm UTC](https://forum.juce.com/t/libpng-multiple-inclusion-fix/10716/2 "2013-07-02T15:05:40Z")

</div>

Thanks - interesting point. It probably would make more sense to remove that and keep all the png symbols hidden away inside the juce namespace.
