fix MS Visual C build after 64-bit support patch

This commit is contained in:
Stas Degteff
2005-10-09 21:09:37 +00:00
parent 4415374ddb
commit 890937100d
5 changed files with 67 additions and 13 deletions

View File

@@ -2,7 +2,8 @@
TOP=../..
TARGET=smblib
INCS=-I$(TOP)/goldlib/smblib -I$(TOP)/goldlib/gall
INCS=-I$(TOP)/goldlib/smblib
#-I$(TOP)/goldlib/gall
CFLAGS=-x c++
include $(TOP)/GNUmakef.inc

View File

@@ -39,7 +39,34 @@
#define _SMBDEFS_H
#include <stdio.h>
#include <gdefs.h>
#ifndef __goldall_h
#ifdef _MSC_VER
#include <windows.h>
typedef UCHAR uint8_t;
typedef signed char int8_t;
typedef WORD uint16_t;
typedef short int16_t;
typedef INT int32_t;
typedef UINT uint32_t;
#else
#include <stdint.h>
#endif
typedef unsigned int uint;
typedef signed int sint;
typedef unsigned bit;
typedef uint8_t byte;
typedef int8_t sbyte;
typedef uint16_t word;
typedef int16_t sword;
typedef uint32_t dword;
typedef int32_t sdword;
typedef uint16_t ushort;
typedef int16_t sshort;
#endif
/**********/
/* Macros */
@@ -447,7 +474,7 @@ typedef struct _PACK { // Message header
typedef struct _PACK { // Data field
ushort type; // Type of data field
uint32_t offset; // Offset into buffer
uint32_t offset; // Offset into buffer
uint32_t length; // Length of data field
} dfield_t;