diff --git a/src/neonucleus.h b/src/neonucleus.h index 469289e..ac40c2b 100644 --- a/src/neonucleus.h +++ b/src/neonucleus.h @@ -1,6 +1,10 @@ #ifndef NEONUCLEUS_H #define NEONUCLEUS_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -634,4 +638,8 @@ typedef struct nn_gpuControl { // the control is COPIED. nn_component *nn_addGPU(nn_computer *computer, nn_address address, int slot, nn_gpuControl *control); +#ifdef __cplusplus +} +#endif + #endif