moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.48k stars 323 forks source link

Fix gcc-10 compilation (fno-common flag enabled by default) #796

Closed rtissera closed 4 years ago

rtissera commented 4 years ago

Description This PR changes a few variables to "extern" where they should be declared as extern.

Purpose Have moonlight-embedded compile fine using GCC 10 since it has enabled stricter checks on extern symbols (-fcommon by default).

Tested building OK on Linux x86_64 (Ubuntu 20.04 LTS) using both GCC 9.3 and GCC 10.1