Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib
Modified Files:
common.h
Log Message:
round as a #define - and xpm loader has extra rgb.txt sourc
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/common.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- common.h 9 Apr 2007 12:55:29 -0000 1.3
+++ common.h 25 Aug 2007 02:07:08 -0000 1.4
@@ -8,6 +8,7 @@
#include <unistd.h>
#include <config.h>
#include <string.h>
+#include <math.h>
#ifdef WITH_DMALLOC
# include <dmalloc.h>
#endif
@@ -40,6 +41,8 @@
if ((y + h) > ((yy) + (hh))) {h = (hh) - (y - yy);}
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
+
+#define round(x) ((x)>=0?(int)((x)+0.5):(int)((x)-0.5))
#ifdef __EMX__
extern char *__XOS2RedirRoot(const char *);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs