Probably fixed SMB compilation under OS/2

This commit is contained in:
Alexander S. Aganichev 2002-08-23 06:17:43 +00:00
parent ecb9c04f09
commit 02877adb54
5 changed files with 9 additions and 4 deletions

View File

@ -57,7 +57,7 @@ LIBEXT=.a
endif
endif
endif
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2# -fomit-frame-pointer
CFLAGS+=-g -funsigned-char $(INCS) -Wall -Wno-sign-compare -pedantic -O2 -DGOLDEDPLUS # -fomit-frame-pointer
LNKFLAGS+=-g
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti

View File

@ -87,7 +87,7 @@ public:
int originno() const { return cfg.originno; }
Attr& attr() { return cfg.attr; }
bool ispacked() const { return cfg.attr.pkd(); }
void packed(bool a) { return cfg.attr.pkd(a); }
void packed(bool a) { cfg.attr.pkd(a); }
bool ascan() { return (bool)cfg.scan; }
bool ascanexcl() { return (bool)cfg.scanexcl; }

View File

@ -3,7 +3,6 @@
TOP=../..
TARGET=smblib
INCS=-I$(TOP)/goldlib/smblib -I$(TOP)/goldlib/gall
CFLAGS=-DGOLDEDPLUS
include $(TOP)/GNUmakef.inc
include $(TOP)/GNUmakef.lib

View File

@ -58,6 +58,12 @@
#define LZHEXPORT
#endif
#ifdef __GNUC__
#ifndef __FLAT__
#define __FLAT__
#endif
#endif
#ifndef GOLDEDPLUS
#ifndef uchar
#define uchar unsigned char

View File

@ -55,8 +55,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
/* SMB-specific headers */
#include "smblib.h"