I am writing a Go program for Windows which contains several packages. One of these packages is using CGo to call a few functions defined in some .h and .c files. These .c files are dependent on windows.h .
Since developing on the Windows platform is incredibly tedious I would like to make a mockup of the functions in this file and develop on Linux instead. But when I try to compile I get:
fatal error: windows.h: No such file or directory
Since the go tool tries to compile my Windows dependent files. Is there some way around this? I know that putting something like
#ifdef .. import x #endif
is not best practice but in this case I need something to allow compiling only the "Linux" files.