Bochs/bochs-testing/plugin-test/test4-interdep/module2.cc
Bryce Denney 7f9c1489df - make it compile on non-win32 platforms by stuffing all the DLL details
into macros.  I got the idea for the MODULE1API(type) macros from
  expat.h that happens to be sitting on my disk.
- modified:
    test2-dynamic/module1.cc test2-dynamic/module1.h
    test3-twomodules/module1.cc test3-twomodules/module1.h
    test3-twomodules/module2.cc test3-twomodules/module2.h
    test4-interdep/module1.cc test4-interdep/module1.h
    test4-interdep/module2.cc test4-interdep/module2.h
2002-10-11 15:29:32 +00:00

17 lines
382 B
C++

// set up MODULE2API macro for DLL export
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
# define MODULE2API(type) __declspec(dllexport) type __cdecl
#else
# define MODULE2API(type) type
#endif
#include <stdio.h>
#include "module2.h"
int n_operations = 0;
void operation_occurred () {
printf ("module2: operation_occurred\n");
n_operations++;
}