mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
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',
|
'-msse2',
|
||||||
'-D_FILE_OFFSET_BITS=64',
|
'-D_FILE_OFFSET_BITS=64',
|
||||||
'-D_LARGEFILE_SOURCE',
|
'-D_LARGEFILE_SOURCE',
|
||||||
|
'-DGCC_HASCLASSVISIBILITY',
|
||||||
|
'-fvisibility=hidden',
|
||||||
|
'-fvisibility-inlines-hidden',
|
||||||
]
|
]
|
||||||
compileFlags += [ '-W' + warning for warning in warnings ]
|
compileFlags += [ '-W' + warning for warning in warnings ]
|
||||||
#compileFlags += [ '-DLOGGING' ]
|
#compileFlags += [ '-DLOGGING' ]
|
||||||
|
6
Source/PluginSpecs/ExportEpilog.h
Normal file
6
Source/PluginSpecs/ExportEpilog.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#undef EXPORT
|
||||||
|
#undef CALL
|
||||||
|
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
}
|
||||||
|
#endif
|
15
Source/PluginSpecs/ExportProlog.h
Normal file
15
Source/PluginSpecs/ExportProlog.h
Normal file
@ -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
|
// 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__
|
#ifndef _PLUGINS_H_INCLUDED__
|
||||||
#define _PLUGINS_H_INCLUDED__
|
#define _PLUGINS_H_INCLUDED__
|
||||||
|
|
||||||
@ -11,9 +19,6 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define EXPORT
|
|
||||||
#define CALL
|
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
@ -7,12 +7,7 @@
|
|||||||
|
|
||||||
#include "PluginSpecs.h"
|
#include "PluginSpecs.h"
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportProlog.h"
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define EXPORT __declspec(dllexport)
|
|
||||||
#define CALL _cdecl
|
|
||||||
|
|
||||||
typedef void (*TWriteBigEData)(const unsigned __int8* _pData, const unsigned __int32 _iAddress, const unsigned __int32 _iSize);
|
typedef void (*TWriteBigEData)(const unsigned __int8* _pData, const unsigned __int32 _iAddress, const unsigned __int32 _iSize);
|
||||||
typedef void (*TPatchFunction)(DWORD _uAddress, unsigned char* _pMachineCode);
|
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);
|
EXPORT DWORD CALL InsertEventString(char* _szEventSourceCode);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportEpilog.h"
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,17 +7,7 @@
|
|||||||
|
|
||||||
#include "PluginSpecs.h"
|
#include "PluginSpecs.h"
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportProlog.h"
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define EXPORT __declspec(dllexport)
|
|
||||||
#define CALL __cdecl
|
|
||||||
#else
|
|
||||||
#define EXPORT
|
|
||||||
#define CALL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef unsigned char (*TARAM_Read_U8)(const unsigned int _uAddress);
|
typedef unsigned char (*TARAM_Read_U8)(const unsigned int _uAddress);
|
||||||
typedef unsigned char* (*TGetMemoryPointer)(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)
|
// input: _Size : Size of the Buffer (always 32)
|
||||||
//
|
//
|
||||||
EXPORT void CALL DSP_SendAIBuffer(unsigned int address, int sample_rate);
|
EXPORT void CALL DSP_SendAIBuffer(unsigned int address, int sample_rate);
|
||||||
#undef CALL
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportEpilog.h"
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,17 +7,7 @@
|
|||||||
|
|
||||||
#include "PluginSpecs.h"
|
#include "PluginSpecs.h"
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportProlog.h"
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define EXPORT __declspec(dllexport)
|
|
||||||
#define CALL __cdecl
|
|
||||||
#else
|
|
||||||
#define CALL
|
|
||||||
#define EXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PAD_ERR_NONE 0
|
#define PAD_ERR_NONE 0
|
||||||
#define PAD_ERR_NO_CONTROLLER -1
|
#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
|
// states don't become plugin dependent which would suck
|
||||||
//
|
//
|
||||||
EXPORT unsigned int CALL SaveLoadState(char *ptr, BOOL save);
|
EXPORT unsigned int CALL SaveLoadState(char *ptr, BOOL save);
|
||||||
#undef CALL
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportEpilog.h"
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,17 +7,7 @@
|
|||||||
|
|
||||||
#include "PluginSpecs.h"
|
#include "PluginSpecs.h"
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#include "ExportProlog.h"
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define EXPORT __declspec(dllexport)
|
|
||||||
#define CALL __cdecl
|
|
||||||
#else
|
|
||||||
#define EXPORT
|
|
||||||
#define CALL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef void (*TSetPEToken)(const unsigned short _token, const int _bSetTokenAcknowledge);
|
typedef void (*TSetPEToken)(const unsigned short _token, const int _bSetTokenAcknowledge);
|
||||||
typedef void (*TSetPEFinish)(void);
|
typedef void (*TSetPEFinish)(void);
|
||||||
@ -193,9 +183,5 @@ EXPORT void CALL Video_SaveState();
|
|||||||
//
|
//
|
||||||
EXPORT void CALL Video_LoadState();
|
EXPORT void CALL Video_LoadState();
|
||||||
|
|
||||||
#undef CALL
|
#include "ExportEpilog.h"
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user