C compile problem on MacOSX

hello everyone, when i try to compile a C program i have been writing on my PC on a Macbook Pro, i get “nested functions are not supported on MacOSX” errors… how do i get around this? i really need help ASAP… :frowning: