C++ compatible

This commit is contained in:
IonutParau 2025-06-30 20:21:32 +02:00
parent 22fef74fb6
commit 2b9bf95de5

View File

@ -1,6 +1,10 @@
#ifndef NEONUCLEUS_H #ifndef NEONUCLEUS_H
#define NEONUCLEUS_H #define NEONUCLEUS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@ -634,4 +638,8 @@ typedef struct nn_gpuControl {
// the control is COPIED. // the control is COPIED.
nn_component *nn_addGPU(nn_computer *computer, nn_address address, int slot, nn_gpuControl *control); nn_component *nn_addGPU(nn_computer *computer, nn_address address, int slot, nn_gpuControl *control);
#ifdef __cplusplus
}
#endif
#endif #endif