瀏覽代碼

mapi: use util/macros.h instead of locally defined macros

The next step is to get rid of u_compiler.h completely.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
tags/10.6-branchpoint
Brian Paul 10 年之前
父節點
當前提交
4ab713423f
共有 2 個文件被更改,包括 2 次插入21 次删除
  1. 1
    0
      src/mapi/glapi/SConscript
  2. 1
    21
      src/mapi/u_compiler.h

+ 1
- 0
src/mapi/glapi/SConscript 查看文件

@@ -27,6 +27,7 @@ if env['platform'] == 'windows':
env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])

env.Append(CPPPATH = [
'#/src',
'#/src/mapi',
'#/src/mesa',
Dir('..'), # src/mapi build path

+ 1
- 21
src/mapi/u_compiler.h 查看文件

@@ -2,26 +2,6 @@
#define _U_COMPILER_H_

#include "c99_compat.h" /* inline, __func__, etc. */

/* Function visibility */
#ifndef PUBLIC
# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define PUBLIC __attribute__((visibility("default")))
# elif defined(_MSC_VER)
# define PUBLIC __declspec(dllexport)
# else
# define PUBLIC
# endif
#endif

#ifndef likely
# if defined(__GNUC__)
# define likely(x) __builtin_expect(!!(x), 1)
# define unlikely(x) __builtin_expect(!!(x), 0)
# else
# define likely(x) (x)
# define unlikely(x) (x)
# endif
#endif
#include "util/macros.h"

#endif /* _U_COMPILER_H_ */

Loading…
取消
儲存