view tests/mini/m.d @ 1448:e92e14690a4f

change mingw32 versioning to version(Windows)
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Sun, 31 May 2009 11:20:26 -0600
parents efa34a3bb8fc
children
line wrap: on
line source

void main()
{
    int* e = __errno_location();
    printf("&errno = %p\n", e);
    printf("errno = %d\n", *e);
}

extern(C):
version(darwin) {
    int* __error();
    alias __error __errno_location;
} else version (Windows) {
    int* strerror();
    alias strerror __errno_location;
} else {
    int* __errno_location();
}
int printf(char*,...);