I have this problem where a bibliography .sty file is possibly named differently between Windows (Miktex) and MacOS (Mactex). (Edit: I mean .bst file) I can't verify this is the root of the issue since I don't have Windows available currently to inspect the .sty file name, but on Windows, the following builds correctly
While on MacOS, the the same line must be changed to the following for the file to build (note the capitalization)
I'd like something like a C/C++ #ifdef directive that let's me detect the system or distribution that is building the file and conditionally use the appropriate line, so that the same file builds on both setups. Of course, I haven't tried the MacOS compatible line on Windows; it may be that the lower-case "t" works on Windows as well. However, my question remains: is it possible to detect what system or distribution the file is being built in and condition some markup on the result?