From db73ddbe31908ce2833a48ede01971b411c9befd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 1 Apr 2003 17:14:36 +0000 Subject: [PATCH] Add labs() needed for new MinGW environment svn path=/trunk/; revision=4470 --- reactos/lib/freetype/rosglue.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/lib/freetype/rosglue.c b/reactos/lib/freetype/rosglue.c index f55ceac35e1..5ebd348e1a8 100644 --- a/reactos/lib/freetype/rosglue.c +++ b/reactos/lib/freetype/rosglue.c @@ -1,4 +1,4 @@ -/* $Id: rosglue.c,v 1.1 2003/04/01 08:38:28 gvg Exp $ +/* $Id: rosglue.c,v 1.2 2003/04/01 17:14:36 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: FreeType implementation for ReactOS @@ -64,6 +64,12 @@ isalnum(int c) return (('0' <= c && c <= '9') || ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z')); } +long +labs(long j) +{ + return (j < 0 ? -j : j); +} + /* * Memory allocation *