http://www.perlmonks.org?node_id=993307

mcandre has asked for the wisdom of the Perl Monks concerning the following question:

With help from Stack Overflow, I'm able to reproduce the Perl's scriptedmain behavior unless(caller) { main; } in C (http://rosettacode.org/wiki/Scripted_Main#C).

Trouble is, this only works with GCC/Unix, not GCC/Windows.

Full analysis and error traces: http://stackoverflow.com/questions/12395130/trouble-using-scriptedmain-in-mingw/12395171#12395171

Does anyone know how to reproduce this (https://github.com/mcandre/scriptedmain/tree/master/perl) in C so that it compiles in Windows?