@@ -30,7 +30,7 @@ const char* ffOptionsParseGeneralJsonConfig(FFOptionsGeneral* options, yyjson_va
3030 else if (unsafe_yyjson_equals_str (key , "detectVersion" ))
3131 options -> detectVersion = yyjson_get_bool (val );
3232
33- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ )
33+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ ) || defined( __GNU__ )
3434 else if (unsafe_yyjson_equals_str (key , "playerName "))
3535 ffStrbufSetJsonVal (& options - > playerName , val );
3636 else if (unsafe_yyjson_equals_str (key , "dsForceDrm "))
@@ -73,7 +73,7 @@ bool ffOptionsParseGeneralCommandLine(FFOptionsGeneral* options, const char* key
7373 else if (ffStrEqualsIgnCase (key , "--detect-version" ))
7474 options -> detectVersion = ffOptionParseBoolean (value );
7575
76- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ )
76+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ ) || defined( __GNU__ )
7777 else if (ffStrEqualsIgnCase (key , "-- player - name "))
7878 ffOptionParseString (key , value , & options - > playerName );
7979 else if (ffStrEqualsIgnCase (key , "-- ds - force - drm "))
@@ -102,7 +102,7 @@ void ffOptionsInitGeneral(FFOptionsGeneral* options)
102102 options -> multithreading = true;
103103 options -> detectVersion = true;
104104
105- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ )
105+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ ) || defined( __GNU__ )
106106 ffStrbufInit (& options -> playerName );
107107 options -> dsForceDrm = FF_DS_FORCE_DRM_TYPE_FALSE ;
108108 #elif defined(_WIN32 )
@@ -112,7 +112,7 @@ void ffOptionsInitGeneral(FFOptionsGeneral* options)
112112
113113void ffOptionsDestroyGeneral (FF_MAYBE_UNUSED FFOptionsGeneral * options )
114114{
115- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ )
115+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ ) || defined( __GNU__ )
116116 ffStrbufDestroy (& options -> playerName );
117117 #endif
118118}
@@ -127,7 +127,7 @@ void ffOptionsGenerateGeneralJsonConfig(FFOptionsGeneral* options, yyjson_mut_do
127127
128128 yyjson_mut_obj_add_bool (doc , obj , "detectVersion" , options -> detectVersion );
129129
130- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ )
130+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__sun ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined(__HAIKU__ ) || defined( __GNU__ )
131131
132132 yyjson_mut_obj_add_strbuf (doc , obj , "playerName" , & options -> playerName );
133133
0 commit comments