Probably fixed SMB compilation under OS/2
This commit is contained in:
parent
ecb9c04f09
commit
02877adb54
@ -57,7 +57,7 @@ LIBEXT=.a
|
|||||||
endif
|
endif
|
||||||
endif
|
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
|
LNKFLAGS+=-g
|
||||||
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
CPPFLAGS+=$(CFLAGS) -fno-exceptions -fno-rtti
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ public:
|
|||||||
int originno() const { return cfg.originno; }
|
int originno() const { return cfg.originno; }
|
||||||
Attr& attr() { return cfg.attr; }
|
Attr& attr() { return cfg.attr; }
|
||||||
bool ispacked() const { return cfg.attr.pkd(); }
|
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 ascan() { return (bool)cfg.scan; }
|
||||||
bool ascanexcl() { return (bool)cfg.scanexcl; }
|
bool ascanexcl() { return (bool)cfg.scanexcl; }
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
TOP=../..
|
TOP=../..
|
||||||
TARGET=smblib
|
TARGET=smblib
|
||||||
INCS=-I$(TOP)/goldlib/smblib -I$(TOP)/goldlib/gall
|
INCS=-I$(TOP)/goldlib/smblib -I$(TOP)/goldlib/gall
|
||||||
CFLAGS=-DGOLDEDPLUS
|
|
||||||
|
|
||||||
include $(TOP)/GNUmakef.inc
|
include $(TOP)/GNUmakef.inc
|
||||||
include $(TOP)/GNUmakef.lib
|
include $(TOP)/GNUmakef.lib
|
||||||
|
@ -58,6 +58,12 @@
|
|||||||
#define LZHEXPORT
|
#define LZHEXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#ifndef __FLAT__
|
||||||
|
#define __FLAT__
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GOLDEDPLUS
|
#ifndef GOLDEDPLUS
|
||||||
#ifndef uchar
|
#ifndef uchar
|
||||||
#define uchar unsigned char
|
#define uchar unsigned char
|
||||||
|
@ -55,8 +55,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
/* SMB-specific headers */
|
/* SMB-specific headers */
|
||||||
#include "smblib.h"
|
#include "smblib.h"
|
||||||
|
Reference in New Issue
Block a user