How can I detect gdb in windows c code?
===

I want to turn certain debug statements on when i'm debugging with gdb and id rather not do it by hand. I found code using `ptrace` which will detect gdb on *nix, but that doesnt exist on windows. I am compiling with mingw gcc on windows.