Mercurial > hg > xemacs-beta
diff src/offix.c @ 225:12579d965149 r20-4b11
Import from CVS: tag r20-4b11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:11:40 +0200 |
parents | 78478c60bfcd |
children | c5d627a313b1 |
line wrap: on
line diff
--- a/src/offix.c Mon Aug 13 10:10:55 2007 +0200 +++ b/src/offix.c Mon Aug 13 10:11:40 2007 +0200 @@ -27,7 +27,7 @@ #include <X11/Xmu/WinUtil.h> #include <stdio.h> #include <stdlib.h> -#include <values.h> +#include <limits.h> /* Local variables */ static Display *dpy; /* current display */ @@ -280,13 +280,13 @@ /* Set the data */ AuxData = Data; - AuxSize = ( Size <= MAXINT ? (int)Size : MAXINT ); + AuxSize = ( Size <= INT_MAX ? (int)Size : INT_MAX ); XChangeProperty(dpy,root,DndSelection,XA_STRING,8, PropModeReplace,Data,AuxSize); for(Size-=(unsigned long)AuxSize;Size;Size-=(unsigned long)AuxSize) { Data+=AuxSize; - AuxSize = ( (Size<=(MAXINT)) ? (int)Size : (MAXINT) ); + AuxSize = ( (Size<=(INT_MAX)) ? (int)Size : (INT_MAX) ); XChangeProperty(dpy,root,DndSelection,XA_STRING,8, PropModeAppend,Data,AuxSize); } @@ -294,13 +294,13 @@ /* Set the data for old DND version */ Size = BackSize; AuxData = Data; - AuxSize = ( Size <= MAXINT ? (int)Size : MAXINT ); + AuxSize = ( Size <= INT_MAX ? (int)Size : INT_MAX ); XChangeProperty(dpy,root,OldDndSelection,XA_STRING,8, PropModeReplace,Data,AuxSize); for(Size-=(unsigned long)AuxSize;Size;Size-=(unsigned long)AuxSize) { Data+=AuxSize; - AuxSize = ( (Size<=(MAXINT)) ? (int)Size : (MAXINT) ); + AuxSize = ( (Size<=(INT_MAX)) ? (int)Size : (INT_MAX) ); XChangeProperty(dpy,root,OldDndSelection,XA_STRING,8, PropModeAppend,Data,AuxSize); }