@matheusbsbs / matheus-bagliano / commits / 65a4e98a22
Fork 0

Git.pm: Don't #define around die

Back in the old days, we called Git's die() from the .xs code, but we had to hijack Perl's die() for that. Now we don't call Git's die() so no need to do the hijacking and it silences a compiler warning. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>

Petr Baudis committed Jul 2, 2006 at 22:57 UTC 65a4e98a22eab9317a05d1485c7c5a9c5befd589
1 file changed -4
perl/Git.xs
-4
@@ -8,15 +8,11 @@
8 #include "../cache.h"
9 #include "../exec_cmd.h"
10
11 -#define die perlyshadow_die__
12 -
11 /* XS and Perl interface */
12 #include "EXTERN.h"
13 #include "perl.h"
14 #include "XSUB.h"
15
18 -#undef die
19 -
16
17 static char *
18 report_xs(const char *prefix, const char *err, va_list params)