Fixed + enabled all compiler warnings
This commit is contained in:
parent
6b90c9f76a
commit
c68c039c70
16 changed files with 72 additions and 22 deletions
|
@ -26,5 +26,5 @@
|
|||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define HARMONYLINKLIB_API
|
||||
#define HARMONYLINK_API
|
||||
#endif
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace LibHarmonyLink {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
HARMONYLINK_API bool HarmonyLink_Init(void);
|
||||
HARMONYLINK_API bool HL_Init(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -27,9 +27,9 @@ namespace LibHarmonyLink {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
char *VendorID;
|
||||
char *Model_Name;
|
||||
typedef struct FCPUInfo {
|
||||
char* VendorID;
|
||||
char* Model_Name;
|
||||
unsigned int Physical_Cores;
|
||||
unsigned int Logical_Cores;
|
||||
StringArray flagsInfo;
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace LibHarmonyLink {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
typedef struct StringArray {
|
||||
char **data; // Array of strings (flags)
|
||||
size_t FlagsCount; // Number of flags
|
||||
size_t AllocatedSize; // Number of allocated slots
|
||||
|
|
|
@ -25,4 +25,4 @@ wchar_t *convertToWideChar(const char *str);
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue