2006-09-03 10:39:10 +03:00
|
|
|
/*
|
2019-03-22 13:26:54 +02:00
|
|
|
Copyright (C) 2004-2005 Grame
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
2006-09-03 10:39:10 +03:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2008-09-05 16:36:28 +03:00
|
|
|
#ifndef __JackCompilerDeps_POSIX__
|
|
|
|
#define __JackCompilerDeps_POSIX__
|
|
|
|
|
2009-03-24 12:32:42 +02:00
|
|
|
#include "JackConstants.h"
|
|
|
|
|
2008-09-05 16:36:28 +03:00
|
|
|
#if __GNUC__
|
2012-07-22 03:16:03 +03:00
|
|
|
|
2009-02-11 14:31:20 +02:00
|
|
|
#define MEM_ALIGN(x,y) x __attribute__((aligned(y)))
|
2011-07-16 23:44:01 +03:00
|
|
|
#define LIB_EXPORT __attribute__((visibility("default")))
|
2008-09-08 17:35:52 +03:00
|
|
|
#ifdef SERVER_SIDE
|
2009-02-11 14:31:20 +02:00
|
|
|
#if (__GNUC__< 4)
|
2009-03-25 11:01:46 +02:00
|
|
|
#define SERVER_EXPORT
|
2009-02-11 14:31:20 +02:00
|
|
|
#else
|
|
|
|
#define SERVER_EXPORT __attribute__((visibility("default")))
|
2009-03-25 11:01:46 +02:00
|
|
|
#endif
|
2008-09-08 17:35:52 +03:00
|
|
|
#else
|
2010-11-03 16:55:21 +02:00
|
|
|
#define SERVER_EXPORT __attribute__((visibility("hidden")))
|
2008-09-08 17:35:52 +03:00
|
|
|
#endif
|
2012-03-09 13:32:25 +02:00
|
|
|
|
2009-03-25 11:01:46 +02:00
|
|
|
#else
|
2009-02-11 14:31:20 +02:00
|
|
|
#define MEM_ALIGN(x,y) x
|
2011-07-16 23:44:01 +03:00
|
|
|
#define LIB_EXPORT
|
2009-02-11 14:31:20 +02:00
|
|
|
#define SERVER_EXPORT
|
2012-01-06 11:50:43 +02:00
|
|
|
|
2012-07-22 03:16:03 +03:00
|
|
|
/* Add other things here for non-gcc platforms */
|
2006-09-03 10:39:10 +03:00
|
|
|
#endif
|
2009-03-25 11:01:46 +02:00
|
|
|
|
2006-09-03 10:39:10 +03:00
|
|
|
#endif
|
|
|
|
|