diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-29 02:52:18 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-11-29 02:52:18 +0000 |
commit | c6b92f97528ee27e734c73f6d5cf516499148d81 (patch) | |
tree | 8ee891f31179a825412f215728698c33a099466d | |
parent | 8c26d0fd757183ee496f283de4be057ea05ab847 (diff) | |
download | ATCD-c6b92f97528ee27e734c73f6d5cf516499148d81.tar.gz |
*** empty log message ***
-rw-r--r-- | ChangeLog-98b | 8 | ||||
-rw-r--r-- | examples/DLL/Newsweek.cpp | 5 | ||||
-rw-r--r-- | examples/DLL/Today.cpp | 6 |
3 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog-98b b/ChangeLog-98b index d2d88cd3fe1..af12efec54f 100644 --- a/ChangeLog-98b +++ b/ChangeLog-98b @@ -1,5 +1,13 @@ Sat NOv 28 20:02:08 1998 Kirthika Parameswaran <kirthika@cs.wustl.edu> + * examples/DLL/Today.cpp: + * examples/DLL/Newsweek.cpp: + + Added the #ifdef directive needed to seperate out the + functionality on NT and UNIX platforms. + +Sat NOv 28 20:02:08 1998 Kirthika Parameswaran <kirthika@cs.wustl.edu> + * examples/DLL/Dll.dsw: * examples/DLL/Test_dll.dsp: * examples/DLL/Today.dsp: diff --git a/examples/DLL/Newsweek.cpp b/examples/DLL/Newsweek.cpp index 95c9eeee6aa..6aaf12ff441 100644 --- a/examples/DLL/Newsweek.cpp +++ b/examples/DLL/Newsweek.cpp @@ -2,6 +2,9 @@ #include "Newsweek.h" +// This declaration necessary to get thi sworking on NT. +#if defined (ACE_HAS_WIN32) + #ifdef __cplusplus extern "C" { // only need to export C interface if // used by C++ source code @@ -13,6 +16,8 @@ extern "C" { // only need to export C interface if } #endif +#endif + // Implementation of the abstract class method which describes // the magazine. void Newsweek::title (void) diff --git a/examples/DLL/Today.cpp b/examples/DLL/Today.cpp index f50de9864cc..01d139c72de 100644 --- a/examples/DLL/Today.cpp +++ b/examples/DLL/Today.cpp @@ -2,17 +2,21 @@ #include "Today.h" +// This declaration is necessary to get this working on NT. +#if defined (ACE_HAS_WIN32) + #ifdef __cplusplus extern "C" { // only need to export C interface if // used by C++ source code #endif - __declspec( dllexport ) Magazine *create_magazine (void); #ifdef __cplusplus } #endif +#endif + // Implementation of the abstract class method which describes the // magazine. void |