MinGW cleanup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10640 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-08-02 14:51:41 +00:00
parent 618517baba
commit a77949a8e6
5 changed files with 37 additions and 23 deletions

View file

@ -1,3 +1,16 @@
2001-08-02 Adam Fedor <fedor@gnu.org>
* Headers/gnustep/gui/NSApplication.h: Remove duplicate
NSOpenStepRoorDirectory decl.
* Headers/gnustep/gui/nsimage-tiff.h: Use TIFF defined types
for variables.
* Source/tiff.m: Likewise.
* Model/GNUmakefile: Add -lobjc to ...LIBRARIES_DEPEND.
* Tools/example.m: Don't use certain signals and fork on MINGW.
2001-08-01 Fred Kiefer <FredKiefer@gmx.de>
* Headers/gnustep/gui/NSEvent.h

View file

@ -368,9 +368,6 @@ NSUnRegisterServicesProvider(NSString *name);
APPKIT_EXPORT int
NSApplicationMain(int argc, const char **argv);
APPKIT_EXPORT NSString*
NSOpenStepRootDirectory(void);
APPKIT_EXPORT void
NSShowSystemInfoPanel(NSDictionary *options);

View file

@ -39,16 +39,16 @@
/* Structure to store common information about a tiff. */
typedef struct {
u_long imageNumber;
u_long subfileType;
u_long width;
u_long height;
u_short bitsPerSample; /* number of bits per data channel */
u_short samplesPerPixel; /* number of channels per pixel */
u_short planarConfig; /* meshed or separate */
u_short photoInterp; /* photometric interpretation of bitmap data, */
u_short compression;
u_short extraSamples; /* Alpha */
uint32 imageNumber;
uint32 subfileType;
uint32 width;
uint32 height;
uint16 bitsPerSample; /* number of bits per data channel */
uint16 samplesPerPixel; /* number of channels per pixel */
uint16 planarConfig; /* meshed or separate */
uint16 photoInterp; /* photometric interpretation of bitmap data, */
uint16 compression;
uint16 extraSamples; /* Alpha */
int assocAlpha;
int quality; /* compression quality (for jpeg) 1 to 255 */
int numImages; /* number of images in tiff */
@ -56,10 +56,10 @@ typedef struct {
} NSTiffInfo;
typedef struct {
u_int size;
u_short *red;
u_short *green;
u_short *blue;
uint32 size;
uint16 *red;
uint16 *green;
uint16 *blue;
} NSTiffColormap;
typedef char* realloc_data_callback(char* data, long size);

View file

@ -259,7 +259,7 @@ NSTiffInfo *
NSTiffGetInfo(int imageNumber, TIFF* image)
{
NSTiffInfo* info;
u_short *sample_info = NULL;
uint16 *sample_info = NULL;
if (image == NULL)
return NULL;
@ -337,9 +337,9 @@ NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
int row, col;
int maxval;
int error = 0;
u_char* outP;
u_char* buf;
u_char* raster;
uint8* outP;
uint8* buf;
uint8* raster;
NSTiffColormap* map;
int scan_line_size;
@ -358,7 +358,7 @@ NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
scan_line_size = TIFFScanlineSize(image);
buf = _TIFFmalloc(scan_line_size);
raster = (u_char *)data;
raster = (uint8 *)data;
outP = raster;
switch (info->photoInterp)
{
@ -388,7 +388,7 @@ NSTiffRead(TIFF* image, NSTiffInfo* info, char* data)
{
for (row = 0; row < info->height; ++row)
{
u_char *inP;
uint8 *inP;
READ_SCANLINE(0);
inP = buf;
for (col = 0; col < info->width; col++)

View file

@ -188,10 +188,12 @@ init(int argc, char** argv)
{
signal(sym, ihandler);
}
#ifndef __MINGW__
signal(SIGPIPE, SIG_IGN);
signal(SIGTTOU, SIG_IGN);
signal(SIGTTIN, SIG_IGN);
signal(SIGHUP, SIG_IGN);
#endif
signal(SIGTERM, ihandler);
if (debug == 0)
@ -199,6 +201,7 @@ init(int argc, char** argv)
/*
* Now fork off child process to run in background.
*/
#ifndef __MINGW__
switch (fork())
{
case -1:
@ -223,6 +226,7 @@ init(int argc, char** argv)
}
exit(0);
}
#endif
}
}