Move MIDI common files in server library on OSX.
[jack2.git] / windows / JackCompilerDeps_os.h
blob75cbc50a098dd47d9164032efc1513749ecf2c7c
1 /*
2 Copyright (C) 2004-2008 Grame
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef __JackCompilerDeps_WIN32__
22 #define __JackCompilerDeps_WIN32__
24 #if __GNUC__
25 #ifndef POST_PACKED_STRUCTURE
26 /* POST_PACKED_STRUCTURE needs to be a macro which
27 expands into a compiler directive. The directive must
28 tell the compiler to arrange the preceding structure
29 declaration so that it is packed on byte-boundaries rather
30 than use the natural alignment of the processor and/or
31 compiler.
33 #if (__GNUC__< 4) /* Does not seem to work with GCC 3.XX serie */
34 #define POST_PACKED_STRUCTURE
35 #elif defined(JACK_32_64)
36 #define POST_PACKED_STRUCTURE __attribute__((__packed__))
37 #else
38 #define POST_PACKED_STRUCTURE
39 #endif
40 #endif
41 #define MEM_ALIGN(x,y) x __attribute__((aligned(y)))
42 #define EXPORT __declspec(dllexport)
43 #ifdef SERVER_SIDE
44 #define SERVER_EXPORT __declspec(dllexport)
45 #else
46 #define SERVER_EXPORT
47 #endif
48 #else
49 #define MEM_ALIGN(x,y) x
50 #define EXPORT __declspec(dllexport)
51 #ifdef SERVER_SIDE
52 #define SERVER_EXPORT __declspec(dllexport)
53 #else
54 #define SERVER_EXPORT
55 #endif
56 #endif
58 #endif