Mercurial > dwindows
comparison dwcompat.h @ 2823:b1ff739d0dbc
Make dwcompat.h allow mixing of C and C++ code. GitHub issue #3.
Also fix a minor whitespace issue.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 14 Aug 2022 15:36:36 +0000 |
parents | 60df58233244 |
children | 22327163b35c |
comparison
equal
deleted
inserted
replaced
2822:0adf73d5d8c2 | 2823:b1ff739d0dbc |
---|---|
1 /* $Id$ */ | 1 /* $Id$ */ |
2 | 2 |
3 #ifndef _DWCOMPAT_H | 3 #ifndef _DWCOMPAT_H |
4 #define _DWCOMPAT_H | 4 #define _DWCOMPAT_H |
5 | |
6 #ifdef __cplusplus | |
7 extern "C" { | |
8 #endif | |
5 | 9 |
6 /* This header includes and defines everything needed for a given OS/compiler */ | 10 /* This header includes and defines everything needed for a given OS/compiler */ |
7 #if defined(__UNIX__) || defined(__MAC__) || defined(__IOS__) || defined(__ANDROID__) | 11 #if defined(__UNIX__) || defined(__MAC__) || defined(__IOS__) || defined(__ANDROID__) |
8 /* iOS and Android currently don't use autoconf */ | 12 /* iOS and Android currently don't use autoconf */ |
9 #if !defined(__IOS__) && !defined(__ANDROID__) | 13 #if !defined(__IOS__) && !defined(__ANDROID__) |
475 char * API locale_string(char *default_text, int message); | 479 char * API locale_string(char *default_text, int message); |
476 void API nice_strformat(char *dest, long double val, int dec); | 480 void API nice_strformat(char *dest, long double val, int dec); |
477 void API initdir(int argc, char *argv[]); | 481 void API initdir(int argc, char *argv[]); |
478 int API setpath(char *path); | 482 int API setpath(char *path); |
479 | 483 |
480 #endif | 484 #ifdef __cplusplus |
485 } | |
486 #endif | |
487 | |
488 #endif |