lib: add various include guards

This commit is contained in:
Christian Hergert 2023-02-09 02:21:29 -08:00
parent ed5b34769a
commit ec09aaaa07
5 changed files with 20 additions and 0 deletions

View File

@ -21,6 +21,10 @@
#pragma once #pragma once
#if !defined(MKS_INSIDE) && !defined(MKS_COMPILATION)
# error "Only <libmks.h> can be included directly."
#endif
#include <glib-object.h> #include <glib-object.h>
#include "mks-types.h" #include "mks-types.h"

View File

@ -21,6 +21,10 @@
#pragma once #pragma once
#if !defined(MKS_INSIDE) && !defined(MKS_COMPILATION)
# error "Only <libmks.h> can be included directly."
#endif
#include <glib.h> #include <glib.h>
#include "mks-version-macros.h" #include "mks-version-macros.h"

View File

@ -21,6 +21,10 @@
#pragma once #pragma once
#if !defined(MKS_INSIDE) && !defined(MKS_COMPILATION)
# error "Only <libmks.h> can be included directly."
#endif
#include <glib-object.h> #include <glib-object.h>
#include "mks-device.h" #include "mks-device.h"

View File

@ -21,6 +21,10 @@
#pragma once #pragma once
#if !defined(MKS_INSIDE) && !defined(MKS_COMPILATION)
# error "Only <libmks.h> can be included directly."
#endif
#include <gio/gio.h> #include <gio/gio.h>
#include "mks-types.h" #include "mks-types.h"

View File

@ -21,6 +21,10 @@
#pragma once #pragma once
#if !defined(MKS_INSIDE) && !defined(MKS_COMPILATION)
# error "Only <libmks.h> can be included directly."
#endif
#include <glib.h> #include <glib.h>
G_BEGIN_DECLS G_BEGIN_DECLS