A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/add40584757636ec99eef41ea3ea4687a43feb3f below:

[core] Fixed 'undef' warning with gcc and clang (#2131) · Haivision/srt@add4058 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+9

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+9

-1

lines changed Original file line number Diff line number Diff line change

@@ -45,7 +45,15 @@

45 45

#endif

46 46

#else

47 47 48 -

#if __APPLE__

48 +

#if defined(__APPLE__) && __APPLE__

49 +

// Warning: please keep this test as it is, do not make it

50 +

// "#if __APPLE__" or "#ifdef __APPLE__". In applications with

51 +

// a strict "no warning policy", "#if __APPLE__" triggers an "undef"

52 +

// error. With GCC, an old & never fixed bug prevents muting this

53 +

// warning (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431).

54 +

// Before this fix, the solution was to "#define __APPLE__ 0" before

55 +

// including srt.h. So, don't use "#ifdef __APPLE__" either.

56 + 49 57

// XXX Check if this condition doesn't require checking of

50 58

// also other macros, like TARGET_OS_IOS etc.

51 59

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4