resolve merge with master (?)
[ardour.git] / libs / ardour / ardour / msvc_libardour.h
1 /*
2     Copyright (C) 2009 John Emmas
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
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19 #ifndef __msvc_libardour_h__
20 #define __msvc_libardour_h__
21
22 #include "ardour/visibility.h"
23 #include <limits.h>
24
25 #ifndef _MAX_PATH
26 #define _MAX_PATH  260
27 #endif
28 #ifndef  PATH_MAX
29 #define  PATH_MAX _MAX_PATH
30 #endif
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
71 #endif  // __mavc_libardour_h__