don't rely on EXTEND_PROTOTYPES
Merge pull request #2498 from stefanpenner/master

don't rely on EXTEND_PROTOTYPES