Appu82

StaticLib.c

Aug 9th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.07 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2. //
  3. // Name:
  4. // Author:
  5. // Created:
  6. // Description:
  7. //
  8. //---------------------------------------------------------------------------
  9. #include "StaticLib.h"
  10.  
  11. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. #if defined(__DMC__) && !( defined(__TINYC__) || defined(__MINGW32__) || defined(_MSC_VER) )
  13.   /*Don't include <windows.h> if you are creating a static lib using Digital Mars.
  14.   any win32 GUI library will not work for a static library, if needed create dll.*/
  15.   #include <errno.h>
  16.   #include <stdint.h>
  17.   #include <stdio.h>
  18.   #include <stdlib.h>
  19. #endif
  20.  
  21. /*This is an irritating thing of the Digital Mars compiler, they include everything in the library-body's '.c' file
  22. and never in the '.h'*/
  23. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  24.  
  25.  
  26. double FuncA(double a, double b) {
  27.    return a + b;
  28. }
  29.  
  30. double FuncB(double a, double b) {
  31.    return a - b;
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment