source: pacpussensors/trunk/Vislab/lib3dv/detail/declspecs.h@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 1.2 KB
Line 
1#ifndef LIB3DV_DETAIL_DECLSPECS_H
2#define LIB3DV_DETAIL_DECLSPECS_H
3
4/* lib3dv/detail/declspecs.h
5 *
6 * Copyright (C) 2013 VisLab
7 *
8 * This file is part of 3dv-client; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef DECLSPEC_PACKED
23 #if defined(_MSC_VER)
24 #define DECLSPEC_PACKED(declaration) __pragma(pack(push,1)) declaration; __pragma(pack(pop))
25 #elif defined(__GNUC__)
26 #define DECLSPEC_PACKED(declaration) declaration __attribute((packed));
27 #else
28 #define DECLSPEC_PACKED(declaration) declaration;
29 #endif
30#endif
31
32#endif
Note: See TracBrowser for help on using the repository browser.