utilitiesMacro.h
上传用户:xfwatch
上传日期:2020-12-14
资源大小:872k
文件大小:1k
源码类别:

中间件编程

开发平台:

Java

  1. /*
  2.  * JBoss, Home of Professional Open Source
  3.  * Copyright 2009, Red Hat, Inc., and others contributors as indicated
  4.  * by the @authors tag. All rights reserved.
  5.  * See the copyright.txt in the distribution for a
  6.  * full listing of individual contributors.
  7.  * This copyrighted material is made available to anyone wishing to use,
  8.  * modify, copy, or redistribute it subject to the terms and conditions
  9.  * of the GNU Lesser General Public License, v. 2.1.
  10.  * This program is distributed in the hope that it will be useful, but WITHOUT A
  11.  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12.  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  13.  * You should have received a copy of the GNU Lesser General Public License,
  14.  * v.2.1 along with this distribution; if not, write to the Free Software
  15.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  16.  * MA  02110-1301, USA.
  17.  */
  18. /* Export/Include macros for Win32 compilation */
  19. #ifndef UTILITIES_MACRO
  20. #define UTILITIES_MACRO
  21. /* Only do defines if we're compiling on Win32 */
  22. #ifdef WIN32
  23. #ifdef _UTILITIES_DLL
  24. #define UTILITIES_DLL __declspec(dllexport)
  25. #else
  26. #define UTILITIES_DLL __declspec(dllimport)
  27. #endif
  28. #else /* Non-win32 platform. Macros need to pre-process away */
  29. /* examples */
  30. #define UTILITIES_DLL
  31. #endif
  32. #endif /* UTILITIES_MACRO */