error CS1032: Cannot define/undefine preprocessor symbols after first token in file

After Unity was updated to 2021.2.0b12
This error started to appear on this line

error CS1032: Cannot define/undefine preprocessor symbols after first token in file

#if UNITY_ANDROID || UNITY_IOS || UNITY_TIZEN || UNITY_TVOS || UNITY_WEBGL || UNITY_WSA || UNITY_PS4 || UNITY_WII || UNITY_XBOXONE || UNITY_SWITCH
#define DISABLESTEAMWORKS
#endif

[ICODE][/ICODE]

2 Likes

I will add a thing: check order. Defines should be before usings.