Ardour  8.12
msvc_libardour.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2014 John Emmas <john@creativepost.co.uk>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 #ifndef __msvc_libardour_h__
19 #define __msvc_libardour_h__
20 
22 #include <limits.h>
23 
24 #ifndef _MAX_PATH
25 #define _MAX_PATH 260
26 #endif
27 #ifndef PATH_MAX
28 #define PATH_MAX _MAX_PATH
29 #endif
30 
31 #define LIBARDOUR_APICALLTYPE __cdecl
32 
33 namespace ARDOUR {
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
38 
39 // LIBARDOUR_API char* LIBARDOUR_APICALLTYPE placeholder_for_non_msvc_specific_function(s);
40 
41 #ifdef __cplusplus
42 } /* extern "C" */
43 #endif /* __cplusplus */
44 
45 } // namespace ARDOUR
46 
47 #ifdef COMPILER_MSVC
48 #include <rpc.h>
49 //#include <io.h>
50 
51 #ifndef __THROW
52 #define __THROW throw()
53 #endif
54 #include <ardourext/sys/time.h>
55 
56 namespace ARDOUR {
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif /* __cplusplus */
61 
62 LIBARDOUR_API int LIBARDOUR_APICALLTYPE symlink(const char *dest, const char *shortcut, const char *working_directory = 0);
63 LIBARDOUR_API int LIBARDOUR_APICALLTYPE readlink(const char *__restrict shortcut, char *__restrict buf, size_t bufsize);
64 
65 #ifdef __cplusplus
66 } /* extern "C" */
67 #endif /* __cplusplus */
68 
69 } // namespace ARDOUR
70 
71 #endif // COMPILER_MSVC
72 #endif // __mavc_libardour_h__
#define LIBARDOUR_API
#define LIBARDOUR_APICALLTYPE