Missing define?
Dave Mitchell
davem at iabyn.com
Tue Dec 19 16:22:19 UTC 2006
On Tue, Dec 19, 2006 at 08:57:47AM -0600, Larry Phillips wrote:
> I hope I'm in the right place for this. I am working on a port of a Windows program, and am having some problems. I expected to
> have to write a number of system calls from scratch, but my problems are far more basic than that.
>
> I am running Fedora Core 3, and trying to compile the program with gcc.
>
> 1. time_t does not seem to be defined anywhere in /usr/include/, yet it is used in a fair number of include files.
>
> 2. size_t is only defined in malloc.h, which is not included (according to makedepend) by any of the headers that get included by
> my code. From what I know, which isn't much, I thought I'd find it in stddef.h or cstddef.h
>
I only have access to FC4, not FC3, but this seems to work:
#include <stdio.h>
#include <time.h>
main() {
printf("%d %d\n", sizeof(time_t), sizeof(size_t));
}
--
print+qq&$}$"$/$s$,$*${d}$g$s$@$.$q$,$:$.$q$^$,$@$*$~$;$.$q$m&if+map{m,^\d{0\,},,${$::{$'}}=chr($"+=$&||1)}q&10m22,42}6:17*2~2.3 at 3;^2dg3q/s"&=~m*\d\*.*g
More information about the fedora-list
mailing list