www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/06:52:26

From: Andy Eskilsson <x-aes AT telelogic DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Detecting djgpp before compiling.
Date: 19 Feb 1997 10:20:13 +0100
Organization: Telelogic AB, Sweden
Lines: 16
Sender: x-aes AT ping
Message-ID: <ksu3n9kv8y.fsf@telelogic.se>
Reply-To: x-aes AT telelogic DOT se
NNTP-Posting-Host: ping.telelogic.se
Mime-Version: 1.0 (generated by tm-edit 7.101)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am messing around with bash and configure, porting python (check it
out! http://www.python.org) to msdos.. 

Well one of the brick walls I banged my head to is stat, unfortunetaly
python doesn't use the constants defined in stat.h, but defines them
itself after 'de facto standard definitions' for example.. 

		Python(UNIX)	djgpp
S_IFDIR		0x4000		0x3000

(And no, I can't get python to use the constants in stat.h) Well one
solution to this problem would be to detect that I am using djgpp in
configure, either I compile somehing like #ifdef __djgpp__ retun 1
#else return 0, or well is there any other solution?

	/Andy

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019