You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the problem with DMD when building for 64 bit (the bugreport for it is (located here)[http://d.puremagic.com/issues/show_bug.cgi?id=10227], and my hackey fix was to replace these lines (117-138) of stdio.d:
else version (MICROSOFT_STDIO)
{
extern (C)
{
/* ** * Microsoft under-the-hood C I/O functions*/int_fputc_nolock(int, _iobuf*);
int_fputwc_nolock(int, _iobuf*);
int_fgetc_nolock(_iobuf*);
int_fgetwc_nolock(_iobuf*);
void_lock_file(FILE*);
void_unlock_file(FILE*);
}
alias _fputc_nolock FPUTC;
alias _fputwc_nolock FPUTWC;
alias _fgetc_nolock FGETC;
alias _fgetwc_nolock FGETWC;
alias _lock_file FLOCK;
alias _unlock_file FUNLOCK;
}
With:
else version (MICROSOFT_STDIO)
{
extern (C)
{
/* ** * Microsoft under-the-hood C I/O functions*/int_fputc_nolock(int, _iobuf*);
int_fputwc_nolock(int, _iobuf*);
int_fgetc_nolock(_iobuf*);
int_fgetwc_nolock(_iobuf*);
void_lock_file(FILE*);
void_unlock_file(FILE*);
int_setmode(int, int);
int_fileno(FILE*);
}
alias _fputc_nolock FPUTC;
alias _fputwc_nolock FPUTWC;
alias _fgetc_nolock FGETC;
alias _fgetwc_nolock FGETWC;
alias _lock_file FLOCK;
alias _unlock_file FUNLOCK;
enum _O_BINARY = 0x8000;
}
With this "fix" (I'm not sure how stable it is), both DMD and LDC compile and run as expected.
The text was updated successfully, but these errors were encountered:
This program:
fails to build, emitting the error:
The build succeeds and runs correctly using DMD:
I ran into the problem with DMD when building for 64 bit (the bugreport for it is (located here)[http://d.puremagic.com/issues/show_bug.cgi?id=10227], and my hackey fix was to replace these lines (117-138) of stdio.d:
With:
With this "fix" (I'm not sure how stable it is), both DMD and LDC compile and run as expected.
The text was updated successfully, but these errors were encountered: