Skip to content

Commit

Permalink
windows: fix cmake build for x86.
Browse files Browse the repository at this point in the history
DHA might not actually work at runtime, but at least everything builds.
  • Loading branch information
adriweb committed Nov 20, 2024
1 parent f5ca54c commit 7671715
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libticables/trunk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ set(PUBLIC_HEADERS
src/timeout.h)

if(WIN32)
list(APPEND HEADER_FILES "src/win64/rwp.h")
list(APPEND SRC_FILES "src/win64/rwp.c")
list(APPEND HEADER_FILES "src/win64/rwp.h" "src/win32/dha.h")
list(APPEND SRC_FILES "src/win64/rwp.c" "src/win32/dha.c")
endif()

# external deps lookup
Expand Down
9 changes: 9 additions & 0 deletions libticables/trunk/src/win32/dha.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@
#ifndef __DHA_H__
#define __DHA_H__

#ifdef __cplusplus
extern "C"
{
#endif

int dha_detect(int* result);

int dha_enable(void);
int dha_disable(void);

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 7671715

Please sign in to comment.