Skip to content

Commit

Permalink
chore: replace header guard with pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
nomi-san committed Nov 14, 2024
1 parent 5102b0d commit 8359bab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions core/src/pengu.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef _PENGU_H_
#define _PENGU_H_
#pragma once
#include "platform.h"

#include <stdint.h>
Expand Down Expand Up @@ -527,5 +526,3 @@ namespace dylib
///
void *find_memory(const void *rladdr, const char *pattern);
}

#endif
9 changes: 5 additions & 4 deletions core/src/platform.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef _PLATFORM_H_
#define _PLATFORM_H_
#pragma once

#ifdef __cplusplus
class __platform__;
#endif

#if defined(_WIN32) || defined(_WIN64)
#ifndef WIN32_LEAN_AND_MEAN
Expand Down Expand Up @@ -43,5 +46,3 @@
#ifndef NDEBUG
#define _DEBUG 1
#endif

#endif

0 comments on commit 8359bab

Please sign in to comment.