Hello Guys,
I am trying to convert linux driver written by someone to win driver. The final code should be OS independent in other words it should know which enviroment it is running on. Should I declare #ifdef __WIN32 in the header file or it is built in? I am not too familiar with driver development in win. Everytime I compiled in VIsual Studio I always get an error msg unexpected #endif. My code is like
main(){
#ifndef __WIN32
*** code
#else
***code
#endif
}
Any ideas?
Thanks,
I am trying to convert linux driver written by someone to win driver. The final code should be OS independent in other words it should know which enviroment it is running on. Should I declare #ifdef __WIN32 in the header file or it is built in? I am not too familiar with driver development in win. Everytime I compiled in VIsual Studio I always get an error msg unexpected #endif. My code is like
main(){
#ifndef __WIN32
*** code
#else
***code
#endif
}
Any ideas?
Thanks,