tge/lib/maxsdk70/include/maxnet_platform.h
2017-04-17 06:17:10 -06:00

49 lines
1.0 KiB
C
Executable File

//-----------------------------------------------------------------------------
// ----------------------------
// File ....: maxnet_platform.h
// ----------------------------
// Author...: Gus J Grubba
// Date ....: February 2000
//
// Descr....: 3D Studio MAX Network Interface - Platform Dependency
//
// History .: Feb, 07 2000 - Started
//
//-----------------------------------------------------------------------------
#ifndef _MAXNET_PLATFORM_H_
#define _MAXNET_PLATFORM_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#include <windows.h>
#define mn_malloc(s) LocalAlloc(LPTR,s)
#define mn_free LocalFree
#else
#define __USE_BSD
#include <sys/socket.h>
#include <sys/fcntl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#define mn_malloc(s) malloc(s)
#define mn_free free
#endif
#endif
//-- EOF: maxnet_platform.h ---------------------------------------------------