ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GBase.cpp
(Generate patch)
# Line 3 | Line 3
3   #include <ctype.h>
4   #include <sys/stat.h>
5  
6 + #ifndef S_ISDIR
7 + #define S_ISDIR(mode)  (((mode) & S_IFMT) == S_IFDIR)
8 + #endif
9 +
10 + #ifndef S_ISREG
11 + #define S_ISREG(mode)  (((mode) & S_IFMT) == S_IFREG)
12 + #endif
13 +
14   static char msg[4069];
15   /*
16   #ifdef _DEFINE_WIN32_FSEEKO
# Line 489 | Line 497
497    if (slen==0) slen=strlen(str);
498    int l=0;
499    int r=slen-1;
500 <  register char c;
500 >  char c;
501    while (l<r) {
502       c=str[l];str[l]=str[r];
503       str[r]=c;
496     //swap(str[l],str[r]);
504       l++;r--;
505       }
506    return str;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines