mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
cleanup
This commit is contained in:
+4
-4
@@ -65,10 +65,6 @@
|
||||
#ifndef _MGUI_CONTROL_H
|
||||
#define _MGUI_CONTROL_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include "ctrl/ctrlhelper.h"
|
||||
|
||||
/**
|
||||
@@ -166,6 +162,10 @@ extern "C" {
|
||||
#include "ctrl/animation.h"
|
||||
#endif /* _MGCTRL_ANIMATION */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
#ifndef EXT_ANIMATION_H
|
||||
#define EXT_ANIMATION_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
+11
-12
@@ -69,6 +69,17 @@
|
||||
#ifndef _MGUI_ENDIAN_RW_H
|
||||
#define _MGUI_ENDIAN_RW_H
|
||||
|
||||
/* The macros used to swap values */
|
||||
/* Try to use superfast macros on systems that support them */
|
||||
#ifdef linux
|
||||
#include <endian.h>
|
||||
#ifdef __arch__swab16
|
||||
#define ArchSwap16 __arch__swab16
|
||||
#endif
|
||||
#ifdef __arch__swab32
|
||||
#define ArchSwap32 __arch__swab32
|
||||
#endif
|
||||
#endif /* linux */
|
||||
|
||||
/* Set up for C function definitions, even when using C++ */
|
||||
#ifdef __cplusplus
|
||||
@@ -404,18 +415,6 @@ MG_EXPORT int MGUI_RWgetc (MG_RWops* area);
|
||||
* @{
|
||||
*/
|
||||
|
||||
/* The macros used to swap values */
|
||||
/* Try to use superfast macros on systems that support them */
|
||||
#ifdef linux
|
||||
#include <endian.h>
|
||||
#ifdef __arch__swab16
|
||||
#define ArchSwap16 __arch__swab16
|
||||
#endif
|
||||
#ifdef __arch__swab32
|
||||
#define ArchSwap32 __arch__swab32
|
||||
#endif
|
||||
#endif /* linux */
|
||||
|
||||
/* Use inline functions for compilers that support them, and static
|
||||
functions for those that do not. Because these functions become
|
||||
static for compilers that do not support inline functions, this
|
||||
|
||||
+5
-3
@@ -64,7 +64,12 @@
|
||||
#ifndef _MGUI_GDI_H
|
||||
#define _MGUI_GDI_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "endianrw.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -8385,9 +8390,6 @@ MG_EXPORT int GUIAPI GetTabbedTextExtentPoint (HDC hdc,
|
||||
|
||||
#ifdef _MGCHARSET_UNICODE
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/**
|
||||
* \fn int GUIAPI MB2WCEx (PLOGFONT log_font, void* dest, BOOL wc32, \
|
||||
* const unsigned char* mstr, int n)
|
||||
|
||||
+1
-2
@@ -65,6 +65,7 @@
|
||||
#define _MGUI_MINIGUI_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -173,8 +174,6 @@ MG_EXPORT RECT GUIAPI GetScreenRect (void);
|
||||
* @{
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/**
|
||||
* \fn BOOL GUIAPI IsServer(void);
|
||||
* \brief Check whether the current process is the server of MiniGUI-Processes.
|
||||
|
||||
Reference in New Issue
Block a user