Skip to content

Commit

Permalink
cpp header
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Aug 21, 2024
1 parent 69529ff commit afb3a13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libcdi/libcdi.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "stdafx.h"
#include "AtaSmart.h"
#include "NVMeInterpreter.h"
#include "libcdi.h"
#include "smartids.h"

//#pragma comment(lib, "pathcch.lib")
#define LIBCDI_IMPLEMENTATION
#include "libcdi.h"

extern "C" CONST CHAR* WINAPI
cdi_get_version()
Expand Down
12 changes: 8 additions & 4 deletions libcdi/libcdi.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@ enum CDI_DISK_STATUS
CDI_FLAG_ENABLE_ASM1352R \
)

#ifdef __cplusplus

#ifdef LIBCDI_IMPLEMENTATION
typedef CAtaSmart CDI_SMART;

#else

typedef struct _CDI_SMART CDI_SMART;
#endif

#ifdef __cplusplus
extern "C" {
#endif

CONST CHAR* WINAPI cdi_get_version(VOID);

Expand Down Expand Up @@ -175,4 +177,6 @@ cdi_get_health_status(enum CDI_DISK_STATUS status)
return "Unknown";
}

#ifdef __cplusplus
}
#endif

0 comments on commit afb3a13

Please sign in to comment.