diff --git a/src/conio/SDL_win32_main.c b/src/conio/SDL_win32_main.c
index b0251eb73346c9ce9e40140959ccbf282e268d84..0626bda45f2bc8450f057b712929b8b6b9e75540 100644
--- a/src/conio/SDL_win32_main.c
+++ b/src/conio/SDL_win32_main.c
@@ -184,7 +184,7 @@ static void __cdecl cleanup_output(void)
 #endif
 }
 
-#if defined(_MSC_VER) && !defined(_WIN32_WCE)
+#if (defined(__BORLANDC__) || defined(_MSC_VER)) && !defined(_WIN32_WCE)
 /* The VC++ compiler needs main defined */
 #define console_main main
 #endif