From: gfx Date: Mon, 6 Sep 2010 05:14:44 +0000 (+0900) Subject: Remove a duplicated macro: LooksLikeNumber X-Git-Tag: 0.65~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92b5b93b444f7df1f9cffa92db0aca0d5e7f0517;p=gitmo%2FMouse.git Remove a duplicated macro: LooksLikeNumber --- diff --git a/xs-src/MouseTypeConstraints.xs b/xs-src/MouseTypeConstraints.xs index 096ce4a..79bc59d 100644 --- a/xs-src/MouseTypeConstraints.xs +++ b/xs-src/MouseTypeConstraints.xs @@ -4,12 +4,6 @@ #include "mouse.h" -#if PERL_BCDVERSION >= 0x5008005 -#define LooksLikeNumber(sv) looks_like_number(sv) -#else -#define LooksLikeNumber(sv) ( SvPOKp(sv) ? looks_like_number(sv) : (I32)SvNIOKp(sv) ) -#endif - #ifndef SvRXOK #define SvRXOK(sv) (SvROK(sv) && SvMAGICAL(SvRV(sv)) && mg_find(SvRV(sv), PERL_MAGIC_qr)) #endif