diff options
author | Haru <haru@dotalux.com> | 2014-05-04 06:13:56 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-05-09 08:29:46 +0200 |
commit | b6b3f58795288701d0e162d43fa6f0a47af913b3 (patch) | |
tree | a75f686731786ed1746325589d8acb1569409981 /src/common/sysinfo.c | |
parent | 1c4e3820d5f4ff9870c28104122f6733db4d55a6 (diff) | |
download | hercules-b6b3f58795288701d0e162d43fa6f0a47af913b3.tar.gz hercules-b6b3f58795288701d0e162d43fa6f0a47af913b3.tar.bz2 hercules-b6b3f58795288701d0e162d43fa6f0a47af913b3.tar.xz hercules-b6b3f58795288701d0e162d43fa6f0a47af913b3.zip |
Fixed order of includes in all source files
- Changed order according to the (upcoming) code style guidelines.
- Fixes several issues caused by missing headers when their include
order is changed or in plugins.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/sysinfo.c')
-rw-r--r-- | src/common/sysinfo.c | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/src/common/sysinfo.c b/src/common/sysinfo.c index a56896458..3fdfadb41 100644 --- a/src/common/sysinfo.c +++ b/src/common/sysinfo.c @@ -4,23 +4,39 @@ /// See sysinfo.h for a description of this file -#define _COMMON_SYSINFO_P_ +#define HERCULES_CORE + #include "sysinfo.h" -#undef _COMMON_SYSINFO_P_ + +#include <stdio.h> // fopen +#include <stdlib.h> // atoi #include "../common/cbasetypes.h" #include "../common/core.h" -#include "../common/strlib.h" #include "../common/malloc.h" +#include "../common/strlib.h" #ifdef WIN32 -#include <windows.h> -#include <string.h> // strlen +# include <string.h> // strlen +# include <windows.h> #else -#include <unistd.h> +# include <unistd.h> #endif -#include <stdio.h> // fopen -#include <stdlib.h> // atoi + +/// Private interface fields +struct sysinfo_private { + char *platform; + char *osversion; + char *cpu; + int cpucores; + char *arch; + char *compiler; + char *cflags; + char *vcstype_name; + int vcstype; + char *vcsrevision_src; + char *vcsrevision_scripts; +}; /// sysinfo.c interface source struct sysinfo_interface sysinfo_s; |