Is there a way to find the Operating system in SWIG interface file. There are macros like SWIGWIN which can be used for windows. Is there any macro for differentiating LINUX and CYGWIN.
            Asked
            
        
        
            Active
            
        
            Viewed 98 times
        
    0
            
            
        - 
                    1You should be able to use `#ifdef`s like in normal C(++), see http://www.swig.org/Doc3.0/Preprocessor.html#Preprocessor_condition_compilation. So this becomes a duplicate of https://stackoverflow.com/questions/142508/how-do-i-check-os-with-a-preprocessor-directive. – Melebius Dec 14 '17 at 08:14
- 
                    Hi I know that these macros exist but which macro will help me to differentiate between cygwin and linux environments – rvkreddy Dec 14 '17 at 17:06
- 
                    Have you tried to search the page I linked for `cygwin`? https://stackoverflow.com/a/42040445/711006 – Melebius Dec 14 '17 at 20:04
