aidansteele / MagicKit

MagicKit is an Objective-C file identification framework based on libmagic.
Other
193 stars 50 forks source link

Build error missing attribute overloadable on getstrc function #9

Open andj207 opened 10 years ago

andj207 commented 10 years ago

Hi, I've just get this framework and put into my project. When I rebuilded it, an error that say "getstrc must have overloadable attribute" in the apprentice.c. I added the attribute attribute((overloadable)) before the function and all work well.

Just let you know this issuse.

Thanks for the great framework!

stanislaw commented 10 years ago

+1

yepthatsjason commented 9 years ago

I was afraid to overload another function, so I simply renamed it with an underscore to _getstrc, and everything works fine now.

ankushkushwaha commented 7 years ago

+1

I am using Cocoapods. And it is not good practice to change code to resolve conflict for getstrc function. I think it should be updated in master Branch.