separate functions for each platform, simplifies code
separate functions for each platform, simplifies code

svn: r8443

original commit: 3942c9d2750c63cfb9c79adcfc8197e9867aa979

mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket,mafagafogigante/racket