Mercurial > dwindows
comparison os2/dw.c @ 1364:417866ad960b
Fixes for compiling with Watcom on OS/2...
binaries don't seem to work but the source compiles now.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 18 Nov 2011 20:01:32 +0000 |
parents | 324812debcc9 |
children | a595e368a393 |
comparison
equal
deleted
inserted
replaced
1363:cdbe26a4b116 | 1364:417866ad960b |
---|---|
32 #ifndef __EMX__ | 32 #ifndef __EMX__ |
33 #include <direct.h> | 33 #include <direct.h> |
34 #endif | 34 #endif |
35 #include <sys/time.h> | 35 #include <sys/time.h> |
36 #include <sys/stat.h> | 36 #include <sys/stat.h> |
37 #ifdef __WATCOMC__ | |
38 #include <alloca.h> | |
39 #endif | |
37 #include "dw.h" | 40 #include "dw.h" |
38 | 41 |
39 #define QWP_USER 0 | 42 #define QWP_USER 0 |
40 | 43 |
41 /* The toolkit headers don't seem to have this */ | 44 /* The toolkit headers don't seem to have this */ |
10616 * -1 on error. | 10619 * -1 on error. |
10617 */ | 10620 */ |
10618 int API dw_exec(char *program, int type, char **params) | 10621 int API dw_exec(char *program, int type, char **params) |
10619 { | 10622 { |
10620 type = type; /* keep compiler happy */ | 10623 type = type; /* keep compiler happy */ |
10621 return spawnvp(P_NOWAIT, program, params); | 10624 return spawnvp(P_NOWAIT, program, (char * const *)params); |
10622 } | 10625 } |
10623 | 10626 |
10624 /* | 10627 /* |
10625 * Loads a web browser pointed at the given URL. | 10628 * Loads a web browser pointed at the given URL. |
10626 * Parameters: | 10629 * Parameters: |