conditional compilation based on existance of a symbol?
Hi,
I am writing a program that uses a function that doesn't currently exist in mingw (gettimeofday() in this case). I am doing my development on Linux/GCC, but I want to be able to compile my program everywhere.
I can define that function in terms of Win32 API.
What I have in mind is to conditionally define that function myself if it doesn't already exist.
I could do the condition based on __WIN32 or something of that sort, but I assume my code will break if/when mingw finally implements that function?
How can I do it?
Thank you