add C++ header guards

This commit is contained in:
Lephenixnoir 2022-02-27 16:27:45 +00:00
parent b6657c0834
commit 6d82009532
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -5,6 +5,10 @@
#ifndef LIBPROF_LIBPROF
#define LIBPROF_LIBPROF
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <gint/defs/attributes.h>
@ -98,4 +102,8 @@ extern uint32_t volatile *prof_tcnt;
Should only be called when the context is not currently executing. */
uint32_t prof_time(prof_t prof);
#ifdef __cplusplus
}
#endif
#endif /* LIBPROF_LIBPROF */