Minimized symbol visibility for GCC build. Fixes problem with two instances of x64Emitter getting mixed up and generating only part of the required opcodes. I get video on 32-bit Linux now :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@336 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d720368d48
commit
d8b3122e0d
|
@ -22,6 +22,9 @@ compileFlags = [
|
|||
'-msse2',
|
||||
'-D_FILE_OFFSET_BITS=64',
|
||||
'-D_LARGEFILE_SOURCE',
|
||||
'-DGCC_HASCLASSVISIBILITY',
|
||||
'-fvisibility=hidden',
|
||||
'-fvisibility-inlines-hidden',
|
||||
]
|
||||
compileFlags += [ '-W' + warning for warning in warnings ]
|
||||
#compileFlags += [ '-DLOGGING' ]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#undef EXPORT
|
||||
#undef CALL
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,15 @@
|
|||
#ifdef _WIN32
|
||||
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL __cdecl
|
||||
|
||||
#else
|
||||
|
||||
#define EXPORT __attribute__ ((visibility("default")))
|
||||
#define CALL
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
|
@ -2,6 +2,14 @@
|
|||
// Common plugin spec, version #1.0 maintained by F|RES
|
||||
//
|
||||
|
||||
#ifdef _WIN32
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL __cdecl
|
||||
#else
|
||||
#define EXPORT __attribute__ ((visibility("default")))
|
||||
#define CALL
|
||||
#endif
|
||||
|
||||
#ifndef _PLUGINS_H_INCLUDED__
|
||||
#define _PLUGINS_H_INCLUDED__
|
||||
|
||||
|
@ -11,9 +19,6 @@
|
|||
|
||||
#else
|
||||
|
||||
#define EXPORT
|
||||
#define CALL
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
|
|
@ -7,12 +7,7 @@
|
|||
|
||||
#include "PluginSpecs.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL _cdecl
|
||||
#include "ExportProlog.h"
|
||||
|
||||
typedef void (*TWriteBigEData)(const unsigned __int8* _pData, const unsigned __int32 _iAddress, const unsigned __int32 _iSize);
|
||||
typedef void (*TPatchFunction)(DWORD _uAddress, unsigned char* _pMachineCode);
|
||||
|
@ -99,7 +94,5 @@ EXPORT DWORD CALL CompileSourceCode(char* _szSourceCode, BYTE* _pMachineCode, DW
|
|||
//
|
||||
EXPORT DWORD CALL InsertEventString(char* _szEventSourceCode);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#include "ExportEpilog.h"
|
||||
#endif
|
||||
|
|
|
@ -7,17 +7,7 @@
|
|||
|
||||
#include "PluginSpecs.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL __cdecl
|
||||
#else
|
||||
#define EXPORT
|
||||
#define CALL
|
||||
#endif
|
||||
#include "ExportProlog.h"
|
||||
|
||||
typedef unsigned char (*TARAM_Read_U8)(const unsigned int _uAddress);
|
||||
typedef unsigned char* (*TGetMemoryPointer)(const unsigned int _uAddress);
|
||||
|
@ -163,8 +153,6 @@ EXPORT void CALL DSP_Update(int cycles);
|
|||
// input: _Size : Size of the Buffer (always 32)
|
||||
//
|
||||
EXPORT void CALL DSP_SendAIBuffer(unsigned int address, int sample_rate);
|
||||
#undef CALL
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "ExportEpilog.h"
|
||||
#endif
|
||||
|
|
|
@ -7,17 +7,7 @@
|
|||
|
||||
#include "PluginSpecs.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL __cdecl
|
||||
#else
|
||||
#define CALL
|
||||
#define EXPORT
|
||||
#endif
|
||||
#include "ExportProlog.h"
|
||||
|
||||
#define PAD_ERR_NONE 0
|
||||
#define PAD_ERR_NO_CONTROLLER -1
|
||||
|
@ -142,8 +132,6 @@ EXPORT unsigned int CALL PAD_GetAttachedPads();
|
|||
// states don't become plugin dependent which would suck
|
||||
//
|
||||
EXPORT unsigned int CALL SaveLoadState(char *ptr, BOOL save);
|
||||
#undef CALL
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "ExportEpilog.h"
|
||||
#endif
|
||||
|
|
|
@ -7,17 +7,7 @@
|
|||
|
||||
#include "PluginSpecs.h"
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#define CALL __cdecl
|
||||
#else
|
||||
#define EXPORT
|
||||
#define CALL
|
||||
#endif
|
||||
#include "ExportProlog.h"
|
||||
|
||||
typedef void (*TSetPEToken)(const unsigned short _token, const int _bSetTokenAcknowledge);
|
||||
typedef void (*TSetPEFinish)(void);
|
||||
|
@ -193,9 +183,5 @@ EXPORT void CALL Video_SaveState();
|
|||
//
|
||||
EXPORT void CALL Video_LoadState();
|
||||
|
||||
#undef CALL
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#include "ExportEpilog.h"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue