Date: Thu, 14 Mar 1996 03:03:27 +0100 (MET) From: Davide Rossi To: Eli Zaretskii Cc: djgpp AT delorie DOT com Subject: Re: findfirst/next is broken In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 13 Mar 1996, Eli Zaretskii wrote: > > On Wed, 13 Mar 1996, Davide Rossi wrote: > > > findfirst/next won't work with C++ (simply try with the ff.c test file, > > renaming it ff.cc). > > Is it's really a bug, please fix it soon ;) > > The problem is in the C++ compiler that doesn't pack structs, not in > findfirst/findnext. Until this bug is corrected in a future version of > GCC, you can use #pragma pack to work around it. Or code your functions > that use finfirst/findnext in C (or call opendir/readdir). > Oh, well... I expected something like this... Can you please explain me how do you mean with "you can use #pragma pack to work around it" ? Ciao, Davide.