svkaiser / strife-ve

Strife Veteran Edition GPL Source Release
GNU General Public License v2.0
133 stars 37 forks source link

Compilation error on Linux #7

Open orderorder opened 2 years ago

orderorder commented 2 years ago

strife-ve-src/src/m_config.c:2643:1: error: expected expression before ‘}’ token 2643 | } | ^

noabody commented 2 years ago

(https://github.com/svkaiser/strife-ve/commit/222623ccd864e45f576207ba7275068773c24854#diff-25bcf4ee25e0b5dfb9be349c97f4e5a5319f9b79b0b3e9501607df760685b995L2614)

It's specifically lines 2614 - 2616. The removal of that code breaks the Linux build:

    {
        return M_Strdup("");
    }

It's weird, I can add line 2643 {}, and the Linux build is fine. Except I haven't added anything, just a blank something. If I were a programmer this might make sense.

#endif // #if defined(LUNA_RELEASE)
#endif // #if !defined(_WIN32)
    {}
}