get rid of duplicate #g_htonl and friends in the NATIVE_WIN32 part

-Yosh
This commit is contained in:
Manish Singh 1998-10-27 08:33:27 +00:00
parent 7470df9f23
commit 167b4fbbfc
10 changed files with 40 additions and 32 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

View File

@ -1,3 +1,8 @@
Tue Oct 27 00:27:31 PST 1998 Manish Singh <yosh@gimp.org>
* glib.h: get rid of duplicate #g_htonl and friends in the
NATIVE_WIN32 part
Mon Oct 26 22:42:01 PST 1998 Manish Singh <yosh@gimp.org>
* glibconfig.h.win32

16
glib.h
View File

@ -2321,25 +2321,9 @@ gint gwin_closedir (DIR *dir);
#endif /* _MSC_VER */
#define g_ntohl(x) \
((guint32)((((guint32)(x) & 0x000000ffU) << 24) | \
(((guint32)(x) & 0x0000ff00U) << 8) | \
(((guint32)(x) & 0x00ff0000U) >> 8) | \
(((guint32)(x) & 0xff000000U) >> 24)))
#define g_htonl(x) g_ntohl(x)
#define g_ntohs(x) \
((guint16)((((guint16)(x) & 0x00ff) << 8) | \
(((guint16)(x) & 0xff00) >> 8)))
#define g_htons(x) g_ntohs(x)
#endif /* NATIVE_WIN32 */
#ifdef __cplusplus
}
#endif /* __cplusplus */

View File

@ -2321,25 +2321,9 @@ gint gwin_closedir (DIR *dir);
#endif /* _MSC_VER */
#define g_ntohl(x) \
((guint32)((((guint32)(x) & 0x000000ffU) << 24) | \
(((guint32)(x) & 0x0000ff00U) << 8) | \
(((guint32)(x) & 0x00ff0000U) >> 8) | \
(((guint32)(x) & 0xff000000U) >> 24)))
#define g_htonl(x) g_ntohl(x)
#define g_ntohs(x) \
((guint16)((((guint16)(x) & 0x00ff) << 8) | \
(((guint16)(x) & 0xff00) >> 8)))
#define g_htons(x) g_ntohs(x)
#endif /* NATIVE_WIN32 */
#ifdef __cplusplus
}
#endif /* __cplusplus */