Skip to content

Commit 4633341

Browse files
committed
small change
1 parent a6db164 commit 4633341

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cimgui-knobs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
extern "C" {
55

6-
bool IgKnobFloat(
6+
EXPORT bool IgKnobFloat(
77
const char *label,
88
float *p_value,
99
float v_min,
@@ -22,7 +22,7 @@ bool IgKnobFloat(
2222
angle_max);
2323
}
2424

25-
bool IgKnobInt(
25+
EXPORT bool IgKnobInt(
2626
const char *label,
2727
int *p_value,
2828
int v_min,

cimgui-knobs.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#pragma once
22

3+
#if !defined(EXPORT)
4+
# define EXPORT
5+
#endif
6+
37
#ifdef __cplusplus
48
extern "C" {
59
#endif
@@ -30,7 +34,7 @@ typedef enum IgKnobVariant {
3034
IgKnobVariant_Space = 1 << 6,
3135
} IgKnobVariant;
3236

33-
bool IgKnobFloat(
37+
EXPORT bool IgKnobFloat(
3438
const char *label,
3539
float *p_value,
3640
float v_min,
@@ -44,7 +48,7 @@ bool IgKnobFloat(
4448
float angle_min,
4549
float angle_max);
4650

47-
bool IgKnobInt(
51+
EXPORT bool IgKnobInt(
4852
const char *label,
4953
int *p_value,
5054
int v_min,

0 commit comments

Comments
 (0)