Skip to content

Commit 9ddb173

Browse files
committed
Linux defines fix
1 parent 19b8acc commit 9ddb173

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libs/openFrameworks/utils/ofConstants.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,12 @@ enum ofTargetPlatform{
244244
#else // desktop linux
245245
#define TARGET_GLFW_WINDOW
246246
#define OF_RTAUDIO
247-
#define __LINUX_PULSE__
248-
#define __LINUX_ALSA__
247+
#ifndef __LINUX_PULSE__
248+
#define __LINUX_PULSE__
249+
#endif
250+
#ifndef __LINUX_ALSA__
251+
#define __LINUX_ALSA__
252+
#endif
249253
#define __LINUX_OSS__
250254
#include <GL/glew.h>
251255
#endif

0 commit comments

Comments
 (0)