]> git.sur5r.net Git - cc65/blob - libsrc/geos/common/perror.c
Use new assembler syntax
[cc65] / libsrc / geos / common / perror.c
1 /*
2  * perror.c
3  *
4  * Maciej 'YTM/Elysium' Witkowiak, 15.07.2001
5  */
6
7 #include <stdio.h>
8 #include <string.h>
9 #include <errno.h>
10 #include <geos.h>
11
12 void __fastcall__ perror(const char* msg)
13 {
14     const char *errmsg = strerror(errno);
15
16     if (msg && *msg) {
17         DlgBoxOk(msg, errmsg);
18     } else {
19         DlgBoxOk("", errmsg);
20     }
21 }