SunOS: support swap & opengl detection

This commit is contained in:
Carter Li
2024-06-17 16:43:52 +08:00
parent 72d332772d
commit 1d6a48e49a
4 changed files with 44 additions and 7 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
#include "common/option.h"
#if defined(__linux__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
typedef enum FFOpenGLLibrary
{
FF_OPENGL_LIBRARY_AUTO,
@@ -19,7 +19,7 @@ typedef struct FFOpenGLOptions
FFModuleBaseInfo moduleInfo;
FFModuleArgs moduleArgs;
#if defined(__linux__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__sun)
FFOpenGLLibrary library;
#endif
} FFOpenGLOptions;