Skip to content

Commit c2c77f4

Browse files
committed
fix compilation on windows
1 parent 7758858 commit c2c77f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <insns_info.inc>
1010
#include "ruby_debug.h"
1111

12-
#define DEBUG_VERSION "0.11.30.pre8"
12+
#define DEBUG_VERSION "0.11.30.pre9"
1313

1414
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
1515
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -521,6 +521,10 @@ filename_cmp_impl(VALUE source, char *file);
521521

522522
int
523523
filename_cmp(VALUE source, char *file) {
524+
#ifdef __WIN32__
525+
return filename_cmp_impl(source, file);
526+
#endif
527+
524528
if (!RTEST(resolve_symlinks)) {
525529
return filename_cmp_impl(source, file);
526530
}

0 commit comments

Comments
 (0)