Home > software compiled with MinGW that the two> Jpegopitm

Part 2 compiled with MinGW the Jpegopitm

I might come together in one place where it is more fix following changes'm a change of Jpegoptim.c.

@@ -53,6 +53,39 @@ #define ICC_IDENT_STRING "ICC_PROFILE\0" #define ICC_IDENT_STRING_SIZE 12 +#ifdef WIN32 +#define uid_t int +#define gid_t int +#define ROOT_UID 0 +#define ROOT_GID 0 +#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) +uid_t getuid(void) +{ + return ROOT_UID; +} +uid_t geteuid(void) +{ + return ROOT_UID; +} +gid_t getgid(void) +{ + return ROOT_GID; +} +gid_t getegid(void) +{ + return ROOT_GID; +} +int setuid(uid_t uid) +{ + return (uid == ROOT_UID ? 0 : -1); +} +int setgid(gid_t gid) +{ + return (gid == ROOT_GID ? 0 : -1); +} + +#endif + void fatal(const char *msg); struct my_error_mgr { 

Comments: 0

Sorry, the comment form
Storing the information that you entered

Trackbacks: 0

TrackBack URL for this article
http://mwlab.net/2010/07/jpegopitm-mingw-2.html/trackback
TrackBack source list
Part 2 compiled with MinGW the Jpegopitm - MoonWing than

Home > software compiled with MinGW that the two> Jpegopitm

Search
Feed
Translation
Japanese flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagEnglish flagGerman flagFrench flagRussian flagVietnamese flagThai flag

Back to the top of the page