Hacker News new | past | comments | ask | show | jobs | submit login

C doesn't have import. Perhaps you meant: #include "cJSON.h"



Ah, my bad.

    #define import #include
    import "cJSON.h"


Edit: It is with great sadness, and a heavy heart, that I report the following news: C doesn't let you do this. (Genuinely surprised, considering everything else it lets you do!)


In fact, I even made it into a reusable library!

    #include "import.h"
    import "cJSON.h"




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: