Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
19 
21 #include <limits.h>
22 
23 #ifndef _MAX_PATH
24 #define _MAX_PATH 260
25 #endif
26 #ifndef PATH_MAX
27 #define PATH_MAX _MAX_PATH
28 #endif
29 
30 #define LIBARDOUR_APICALLTYPE __cdecl
31 
32 namespace ARDOUR {
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37 
38 // LIBARDOUR_API char* LIBARDOUR_APICALLTYPE placeholder_for_non_msvc_specific_function(s);
39 
40 #ifdef __cplusplus
41 } /* extern "C" */
42 #endif /* __cplusplus */
43 
44 } // namespace ARDOUR
45 
46 #ifdef COMPILER_MSVC
47 #include <rpc.h>
48 //#include <io.h>
49 
50 #ifndef __THROW
51 #define __THROW throw()
52 #endif
53 #include <ardourext/sys/time.h>
54 
55 namespace ARDOUR {
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif /* __cplusplus */
60 
61 LIBARDOUR_API int LIBARDOUR_APICALLTYPE symlink(const char *dest, const char *shortcut, const char *working_directory = 0);
62 LIBARDOUR_API int LIBARDOUR_APICALLTYPE readlink(const char *__restrict shortcut, char *__restrict buf, size_t bufsize);
63 
64 #ifdef __cplusplus
65 } /* extern "C" */
66 #endif /* __cplusplus */
67 
68 } // namespace ARDOUR
69 
70 #endif // COMPILER_MSVC
#define LIBARDOUR_API
#define LIBARDOUR_APICALLTYPE