Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
3d7379ba
Commit
3d7379ba
authored
Mar 25, 1998
by
Manish Singh
Browse files
SunOS portability kludge (bleh)
-Yosh
parent
c26040d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
plug-ins/common/sunras.c
View file @
3d7379ba
...
...
@@ -136,6 +136,9 @@ static void save_toggle_update (GtkWidget *widget,
gpointer
data
);
static
void
show_message
(
char
*
);
/* Portability kludge */
static
int
my_fwrite
(
void
*
ptr
,
int
size
,
int
nmemb
,
FILE
*
stream
);
GPlugInInfo
PLUG_IN_INFO
=
{
NULL
,
/* init_proc */
...
...
@@ -1349,7 +1352,7 @@ save_index (FILE *ofp,
src = begin; }
if
(
rle
)
{
write_fun
=
(
WRITE_FUN
*
)
&
rle_fwrite
;
rle_startwrite
(
ofp
);
}
else
write_fun
=
(
WRITE_FUN
*
)
&
fwrite
;
else
write_fun
=
(
WRITE_FUN
*
)
&
my_
fwrite
;
if
(
bw
)
/* Two colour image */
{
...
...
@@ -1648,3 +1651,8 @@ static void show_message (char *message)
#endif
fprintf
(
stderr
,
"sunras: %s
\n
"
,
message
);
}
static
int
my_fwrite
(
void
*
ptr
,
int
size
,
int
nmemb
,
FILE
*
stream
)
{
return
fwrite
(
ptr
,
size
,
nmemb
,
stream
);
}
plug-ins/sunras/sunras.c
View file @
3d7379ba
...
...
@@ -136,6 +136,9 @@ static void save_toggle_update (GtkWidget *widget,
gpointer
data
);
static
void
show_message
(
char
*
);
/* Portability kludge */
static
int
my_fwrite
(
void
*
ptr
,
int
size
,
int
nmemb
,
FILE
*
stream
);
GPlugInInfo
PLUG_IN_INFO
=
{
NULL
,
/* init_proc */
...
...
@@ -1349,7 +1352,7 @@ save_index (FILE *ofp,
src = begin; }
if
(
rle
)
{
write_fun
=
(
WRITE_FUN
*
)
&
rle_fwrite
;
rle_startwrite
(
ofp
);
}
else
write_fun
=
(
WRITE_FUN
*
)
&
fwrite
;
else
write_fun
=
(
WRITE_FUN
*
)
&
my_
fwrite
;
if
(
bw
)
/* Two colour image */
{
...
...
@@ -1648,3 +1651,8 @@ static void show_message (char *message)
#endif
fprintf
(
stderr
,
"sunras: %s
\n
"
,
message
);
}
static
int
my_fwrite
(
void
*
ptr
,
int
size
,
int
nmemb
,
FILE
*
stream
)
{
return
fwrite
(
ptr
,
size
,
nmemb
,
stream
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment