- add BOCHSAPI_CYGONLY to insert DLL export tags in places that only Cygwin

wants them.
- modified: bochs.h config.h.in gui/siminterface.h
This commit is contained in:
Bryce Denney 2002-11-15 18:31:55 +00:00
parent adb6e17ffa
commit 515ffa8ecc
3 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: bochs.h,v 1.107 2002-11-11 17:09:45 cbothamy Exp $
// $Id: bochs.h,v 1.108 2002-11-15 18:31:52 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -250,7 +250,7 @@ typedef class BOCHSAPI logfunctions {
class iofunctions *logio;
// default log actions for all devices, declared and initialized
// in logio.cc.
BOCHSAPI static int default_onoff[N_LOGLEV];
BOCHSAPI_CYGONLY static int default_onoff[N_LOGLEV];
public:
logfunctions(void);
logfunctions(class iofunctions *);

View File

@ -389,7 +389,15 @@
# define BOCHSAPI
#endif
#if defined(__CYGWIN__)
// Make BOCHSAPI_CYGONLY exactly the same as BOCHSAPI. This symbol
// will be used for any cases where Cygwin requires a special tag
// but VC++ does not.
#define BOCHSAPI_CYGONLY BOCHSAPI
#else
// define the symbol to be empty
#define BOCHSAPI_CYGONLY /*empty*/
#endif
#define BX_DEFAULT_CONFIG_INTERFACE "defined_by_configure"
#define BX_DEFAULT_DISPLAY_LIBRARY "defined_by_configure"

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: siminterface.h,v 1.86 2002-11-15 13:22:06 bdenney Exp $
// $Id: siminterface.h,v 1.87 2002-11-15 18:31:55 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Before I can describe what this file is for, I have to make the
@ -759,7 +759,7 @@ public:
};
class BOCHSAPI bx_param_c : public bx_object_c {
BOCHSAPI static const char *default_text_format;
BOCHSAPI_CYGONLY static const char *default_text_format;
protected:
char *name;
char *description;
@ -792,7 +792,7 @@ public:
typedef Bit64s (*param_event_handler)(class bx_param_c *, int set, Bit64s val);
class BOCHSAPI bx_param_num_c : public bx_param_c {
BOCHSAPI static Bit32u default_base;
BOCHSAPI_CYGONLY static Bit32u default_base;
// The dependent_list is initialized to NULL. If dependent_list is modified
// to point to a bx_list_c of other parameters, the set() method of
// bx_param_bool_c will enable those parameters when this bool is true, and