Remove unneeded DLLEXPORT and STDCALL macros
This commit is contained in:
parent
3f0a44ad7e
commit
edf7c991f4
12
c/dtypes.h
12
c/dtypes.h
|
@ -16,18 +16,6 @@
|
||||||
#undef BITS32 // TODO
|
#undef BITS32 // TODO
|
||||||
#define BITS64 // TODO
|
#define BITS64 // TODO
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define STDCALL __stdcall
|
|
||||||
#if defined(IMPORT_EXPORTS)
|
|
||||||
#define DLLEXPORT __declspec(dllimport)
|
|
||||||
#else
|
|
||||||
#define DLLEXPORT __declspec(dllexport)
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define STDCALL
|
|
||||||
#define DLLEXPORT __attribute__((visibility("default")))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LLT_ALLOC(n) malloc(n)
|
#define LLT_ALLOC(n) malloc(n)
|
||||||
#define LLT_REALLOC(p, n) realloc((p), (n))
|
#define LLT_REALLOC(p, n) realloc((p), (n))
|
||||||
#define LLT_FREE(x) free(x)
|
#define LLT_FREE(x) free(x)
|
||||||
|
|
|
@ -119,7 +119,7 @@ static int bisearch(uint32_t ucs, const struct interval *table, int max)
|
||||||
* in ISO 10646.
|
* in ISO 10646.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DLLEXPORT int wcwidth(uint32_t ucs)
|
int wcwidth(uint32_t ucs)
|
||||||
{
|
{
|
||||||
/* sorted list of non-overlapping intervals of non-spacing characters */
|
/* sorted list of non-overlapping intervals of non-spacing characters */
|
||||||
/* generated by "uniset +cat=Me +cat=Mn +cat=Cf -00AD +1160-11FF +200B c"
|
/* generated by "uniset +cat=Me +cat=Mn +cat=Cf -00AD +1160-11FF +200B c"
|
||||||
|
|
Loading…
Reference in New Issue