1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 04:12:02 +00:00

strat: fix inclusion/ordering for some c headers

This commit is contained in:
Michael Scire 2020-08-14 17:33:49 -07:00
parent 51b5c3d87d
commit 7658c07492
4 changed files with 8 additions and 13 deletions

View file

@ -15,9 +15,7 @@
*/ */
#pragma once #pragma once
#include <switch/types.h> #include <switch.h>
#include <switch/kernel/event.h>
#include <switch/services/sm.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -15,9 +15,7 @@
*/ */
#pragma once #pragma once
#include <switch/types.h> #include <switch.h>
#include <switch/kernel/event.h>
#include <switch/services/sm.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View file

@ -1,14 +1,15 @@
#pragma once #pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <switch/types.h> #include <switch/types.h>
#include <switch/result.h> #include <switch/result.h>
#include <switch/kernel/mutex.h> #include <switch/kernel/mutex.h>
#include <switch/sf/service.h> #include <switch/sf/service.h>
#include <switch/services/sm.h> #include <switch/services/sm.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ServiceGuard { typedef struct ServiceGuard {
Mutex mutex; Mutex mutex;
u32 refCount; u32 refCount;

View file

@ -5,9 +5,7 @@
* @copyright libnx Authors * @copyright libnx Authors
*/ */
#pragma once #pragma once
#include <switch/types.h> #include <switch.h>
#include <switch/kernel/event.h>
#include <switch/services/sm.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {