Mercurial > dwindows
comparison dwtest.c @ 2026:a9809db1ddbf
Last change also allows removing Windows specific #ifdef.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 11 Nov 2019 19:12:53 +0000 |
parents | 211330337f2d |
children | c4fc33d70a8e |
comparison
equal
deleted
inserted
replaced
2025:211330337f2d | 2026:a9809db1ddbf |
---|---|
5 */ | 5 */ |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include "dw.h" | 9 #include "dw.h" |
10 /* For snprintf on old Windows SDK */ | 10 /* For snprintf, strdup etc on old Windows SDK */ |
11 #include "dwcompat.h" | 11 #include "dwcompat.h" |
12 | |
13 #ifdef _MSC_VER | |
14 # if _MSC_VER >= 1400 | |
15 # define strdup(a) _strdup(a) | |
16 # endif | |
17 #endif | |
18 | 12 |
19 /* Select a fixed width font for our platform */ | 13 /* Select a fixed width font for our platform */ |
20 #ifdef __OS2__ | 14 #ifdef __OS2__ |
21 #define FIXEDFONT "5.System VIO" | 15 #define FIXEDFONT "5.System VIO" |
22 #define FOLDER_ICON_NAME "os2\\folder" | 16 #define FOLDER_ICON_NAME "os2\\folder" |