I have the following Code
#ifdef ENV_TI
typedef struct timespecT
{
Uint32 tv_sec;
Uint32 tv_nsec;
}timespec;
#endif
#ifndef ENV_TI
struct timespec currentTime; // This Line
#else
timespec currentTime;
#endif
How is the currentTime
accessible if i have NOT defined ENV_TI
flag and the timespec is defined under the ENV_TI
flag?
I am running this code on Linux, gcc compiler.