Commit 7ce0c7a9 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

define _O_BINARY ourselves if it's not defined by any headers, and use

2005-06-04  Manish Singh  <yosh@gimp.org>

        * plug-ins/helpbrowser/dialog.c: define _O_BINARY ourselves if
        it's not defined by any headers, and use that instead of #ifdefed
        calls to g_open.
parent 7562930d
2005-06-04 Manish Singh <yosh@gimp.org>
* plug-ins/helpbrowser/dialog.c: define _O_BINARY ourselves if
it's not defined by any headers, and use that instead of #ifdefed
calls to g_open.
2005-06-04 Sven Neumann <sven@gimp.org>
* app/widgets/gimpwidgets-utils.c (gimp_text_buffer_load):
......
......@@ -56,6 +56,10 @@
#include "libgimp/stdplugins-intl.h"
#ifndef _O_BINARY
#define _O_BINARY 0
#endif
enum
{
......@@ -866,12 +870,7 @@ request_url (HtmlDocument *doc,
if (filename)
{
#ifdef G_OS_WIN32
gint fd = g_open (filename, O_RDONLY|O_BINARY, 0);
#else
gint fd = g_open (filename, O_RDONLY, 0);
#endif
gint fd = g_open (filename, O_RDONLY | _O_BINARY, 0);
if (fd != -1)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment