From 2b9bf95de5d39f6b2a056be50193bb945b51f66c Mon Sep 17 00:00:00 2001 From: IonutParau Date: Mon, 30 Jun 2025 20:21:32 +0200 Subject: [PATCH] C++ compatible --- src/neonucleus.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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