Mercurial > projects > ldc
view tests/mini/m.d @ 1256:6af2359b433a
Change needed for mingw
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Wed, 22 Apr 2009 14:40:56 -0600 |
parents | d2d6107e4ec2 |
children | efa34a3bb8fc |
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 { int* __errno_location(); } int printf(char*,...);