carpentry-org / hydrogen.carp

A simple wrapper around libhydrogen for Carp
https://veitheller.de/hydrogen/
MIT License
1 stars 0 forks source link

Name clash with Array #1

Closed eriksvedang closed 4 years ago

eriksvedang commented 4 years ago

When I load this I get an error:

error: typedef redefinition with different types ('struct Array' vs 'struct Array')

Supposedly the other Array is in hydrogenbuf.h...

hellerve commented 4 years ago

Oh whoops! I added #pragma once to core.h because otherwise reloading core.h is not possible from any other C file included in Carp code, but forgot to contribute it back!

eriksvedang commented 4 years ago

Ah, that makes sense!

eriksvedang commented 4 years ago

Commenting out in hydrogenbuf.h works for me.

hellerve commented 4 years ago

Removed core.h from hydrogenbuf.h.