Skip to content

Instantly share code, notes, and snippets.

@drewdeponte
Created November 7, 2009 05:57
Show Gist options
  • Save drewdeponte/228558 to your computer and use it in GitHub Desktop.
Save drewdeponte/228558 to your computer and use it in GitHub Desktop.
so in process its semantically different behind the scenes
from how windows does it but its syntactically equivalent
as you can see from the email. all you have to do is set
up the macros correctly, its great.
Check out this link
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Code-Gen-Options.html#Code-Gen-Options
and follow the two links it provides they are good resources.
your an oam
#ifndef _XACT_EXPORT_H_
#define _XACT_EXPORT_H_
#ifdef WIN32
#ifdef XACT_DLLEXPORT
#define XACT_EXPORT __declspec(dllexport)
#else
#ifdef XACT_DLLIMPORT
#define XACT_EXPORT __declspec(dllimport)
#endif
#endif
#else
#ifdef XACT_DLLEXPORT
#define XACT_EXPORT __attribute__ ((visibility("default")))
#define XACT_LOCAL __attribute__ ((visibility("hidden")))
#else
#define XACT_EXPORT
#define XACT_LOCAL
#endif
#endif
#endif // _XACT_EXPORT_H_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment