Changeset 2710 for trunk/gsdl


Ignore:
Timestamp:
2001-08-22T14:38:08+12:00 (23 years ago)
Author:
cs025
Message:

Make sure that WIN32 compilation uses the supplied hton/ntoh endian conversion functions
so that windows uses little endian files for mgpp.

Location:
trunk/gsdl/src/mgpp/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/WIN32.MAK

    r2556 r2710  
    8484    xmalloc$o         bitio_m_random$o  bitio_m_abstract$o \
    8585     random$o          simplefrenchstem$o \
    86     unitool$o  getopt_old$o
     86    unitool$o  win32in$o getopt_old$o
    8787
    8888all : libmg.lib
  • trunk/gsdl/src/mgpp/lib/win32in.c

    r2702 r2710  
    11/* This module provides an equivalent of <netinet/in.h> on  */
    22/* unix systems. */
     3#include "win32in.h"
    34
    45unsigned long htonl(unsigned long x) {
  • trunk/gsdl/src/mgpp/lib/win32in.h

    r2468 r2710  
    11/* This module provides an equivalent of <netinet/in.h> on  */
    22/* unix systems. */
     3#ifdef __WIN32__
     4#define _LITTLE_ENDIAN
     5#endif
    36
    47#include "longlong.h"
     8#ifdef __cplusplus
     9extern "C" {
     10#endif
    511
    612unsigned long htonl(unsigned long x);
     
    915unsigned short htons(unsigned short x);
    1016unsigned short ntohs(unsigned short x);
     17
     18#ifdef __cplusplus
     19}
     20#endif
Note: See TracChangeset for help on using the changeset viewer.