mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-18 10:24:15 +02:00
Drop the mapping of POSIX function names to the underscored versions, it's
* glib.h: (Win32) Drop the mapping of POSIX function names to the underscored versions, it's unnecessary after all. With MSVC we get them from oldnames.lib, with gcc-2.95 and mingw32 from -lmoldname-msvc. Add comment about what headers to include for prototypes.
This commit is contained in:
parent
7359af948d
commit
374c870b96
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
1999-10-05 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
|
* glib.h: (Win32) Drop the mapping of POSIX function names to the
|
||||||
|
underscored versions, it's unnecessary after all. With MSVC we get
|
||||||
|
them from oldnames.lib, with gcc-2.95 and mingw32 from
|
||||||
|
-lmoldname-msvc. Add comment about what headers to include for
|
||||||
|
prototypes.
|
||||||
|
|
||||||
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.
|
||||||
|
|
||||||
* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.
|
* gerror.c (g_on_error_query): (Win32) Slightly increased verbosity.
|
||||||
|
|
||||||
* build-dll: Don't strip.
|
* build-dll: Don't strip.
|
||||||
|
|
||||||
|
48
glib.h
48
glib.h
@ -2757,44 +2757,32 @@ GIOChannel *g_io_channel_win32_new_stream_socket (int socket);
|
|||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* These POSIXish functions are available in the Microsoft C library
|
/*
|
||||||
* prefixed with underscore (which of course technically speaking is
|
* To get prototypes for the following POSIXish functions, you have to
|
||||||
* the Right Thing, as they are non-ANSI. Not that being non-ANSI
|
* include the indicated non-POSIX headers. The functions are defined
|
||||||
* prevents Microsoft from practically requiring you to include
|
* in OLDNAMES.LIB (MSVC) or -lmoldname-msvc (mingw32).
|
||||||
* <windows.h> every now and then...).
|
|
||||||
*
|
*
|
||||||
* You still need to include the appropriate headers to get the
|
* getcwd: <direct.h> (MSVC), <io.h> (mingw32)
|
||||||
* prototypes, like <stdio.h>, <io.h>, <direct.h> or <process.h>.
|
* getpid: <process.h>
|
||||||
*
|
* access: <io.h>
|
||||||
* For some functions, we provide emulators in glib, which are prefixed
|
* unlink: <stdio.h> or <io.h>
|
||||||
* with gwin_.
|
* open, read, write, lseek, close: <io.h>
|
||||||
|
* rmdir: <direct.h>
|
||||||
|
* pipe: <direct.h> */
|
||||||
|
|
||||||
|
/* pipe is not in OLDNAMES.LIB or -lmoldname-msvc. */
|
||||||
|
#define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
|
||||||
|
|
||||||
|
/* For some POSIX functions that are not provided by the MS runtime,
|
||||||
|
* we provide emulators in glib, which are prefixed with gwin_.
|
||||||
*/
|
*/
|
||||||
# define getcwd _getcwd
|
|
||||||
# define getpid _getpid
|
|
||||||
# define access _access
|
|
||||||
#ifdef __GNUC__
|
|
||||||
# define stat _stat
|
|
||||||
# define fileno _fileno
|
|
||||||
#endif
|
|
||||||
# define fstat _fstat
|
|
||||||
# define unlink _unlink
|
|
||||||
# define open _open
|
|
||||||
# define read _read
|
|
||||||
# define write _write
|
|
||||||
# define lseek _lseek
|
|
||||||
# define close _close
|
|
||||||
# define rmdir _rmdir
|
|
||||||
# define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
|
|
||||||
# define popen _popen
|
|
||||||
# define pclose _pclose
|
|
||||||
# define fdopen _fdopen
|
|
||||||
# define hypot _hypot
|
|
||||||
# define ftruncate(fd, size) gwin_ftruncate (fd, size)
|
# define ftruncate(fd, size) gwin_ftruncate (fd, size)
|
||||||
# define opendir gwin_opendir
|
# define opendir gwin_opendir
|
||||||
# define readdir gwin_readdir
|
# define readdir gwin_readdir
|
||||||
# define rewinddir gwin_rewinddir
|
# define rewinddir gwin_rewinddir
|
||||||
# define closedir gwin_closedir
|
# define closedir gwin_closedir
|
||||||
# define NAME_MAX 255
|
# define NAME_MAX 255
|
||||||
|
|
||||||
struct DIR
|
struct DIR
|
||||||
{
|
{
|
||||||
gchar *dir_name;
|
gchar *dir_name;
|
||||||
|
48
glib/glib.h
48
glib/glib.h
@ -2757,44 +2757,32 @@ GIOChannel *g_io_channel_win32_new_stream_socket (int socket);
|
|||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* These POSIXish functions are available in the Microsoft C library
|
/*
|
||||||
* prefixed with underscore (which of course technically speaking is
|
* To get prototypes for the following POSIXish functions, you have to
|
||||||
* the Right Thing, as they are non-ANSI. Not that being non-ANSI
|
* include the indicated non-POSIX headers. The functions are defined
|
||||||
* prevents Microsoft from practically requiring you to include
|
* in OLDNAMES.LIB (MSVC) or -lmoldname-msvc (mingw32).
|
||||||
* <windows.h> every now and then...).
|
|
||||||
*
|
*
|
||||||
* You still need to include the appropriate headers to get the
|
* getcwd: <direct.h> (MSVC), <io.h> (mingw32)
|
||||||
* prototypes, like <stdio.h>, <io.h>, <direct.h> or <process.h>.
|
* getpid: <process.h>
|
||||||
*
|
* access: <io.h>
|
||||||
* For some functions, we provide emulators in glib, which are prefixed
|
* unlink: <stdio.h> or <io.h>
|
||||||
* with gwin_.
|
* open, read, write, lseek, close: <io.h>
|
||||||
|
* rmdir: <direct.h>
|
||||||
|
* pipe: <direct.h> */
|
||||||
|
|
||||||
|
/* pipe is not in OLDNAMES.LIB or -lmoldname-msvc. */
|
||||||
|
#define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
|
||||||
|
|
||||||
|
/* For some POSIX functions that are not provided by the MS runtime,
|
||||||
|
* we provide emulators in glib, which are prefixed with gwin_.
|
||||||
*/
|
*/
|
||||||
# define getcwd _getcwd
|
|
||||||
# define getpid _getpid
|
|
||||||
# define access _access
|
|
||||||
#ifdef __GNUC__
|
|
||||||
# define stat _stat
|
|
||||||
# define fileno _fileno
|
|
||||||
#endif
|
|
||||||
# define fstat _fstat
|
|
||||||
# define unlink _unlink
|
|
||||||
# define open _open
|
|
||||||
# define read _read
|
|
||||||
# define write _write
|
|
||||||
# define lseek _lseek
|
|
||||||
# define close _close
|
|
||||||
# define rmdir _rmdir
|
|
||||||
# define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
|
|
||||||
# define popen _popen
|
|
||||||
# define pclose _pclose
|
|
||||||
# define fdopen _fdopen
|
|
||||||
# define hypot _hypot
|
|
||||||
# define ftruncate(fd, size) gwin_ftruncate (fd, size)
|
# define ftruncate(fd, size) gwin_ftruncate (fd, size)
|
||||||
# define opendir gwin_opendir
|
# define opendir gwin_opendir
|
||||||
# define readdir gwin_readdir
|
# define readdir gwin_readdir
|
||||||
# define rewinddir gwin_rewinddir
|
# define rewinddir gwin_rewinddir
|
||||||
# define closedir gwin_closedir
|
# define closedir gwin_closedir
|
||||||
# define NAME_MAX 255
|
# define NAME_MAX 255
|
||||||
|
|
||||||
struct DIR
|
struct DIR
|
||||||
{
|
{
|
||||||
gchar *dir_name;
|
gchar *dir_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user