Changeset 59 in pacpusframework for trunk/include/Pacpus/kernel/pacpus.h


Ignore:
Timestamp:
Jan 9, 2013, 11:30:53 AM (12 years ago)
Author:
Marek Kurdej
Message:

Major: FileLib is now a shared library.
Added: FileLibConfig.h to handle dllimport/dllexport on Windows.
Note: MSVC warning C4251 is a normal thing when using an STL as a member field in a DLL-exported class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/kernel/pacpus.h

    r31 r59  
    3434
    3535#ifdef __GNUC__
    36 #   define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
    37 #   define PACPUS_DEPRECATED_MSG(func, msg) func __attribute__ ((deprecated))
     36#   define PACPUS_DEPRECATED(func)              func __attribute__ ((deprecated))
     37#   define PACPUS_DEPRECATED_MSG(func, msg)     PACPUS_DEPRECATED(func)
    3838#elif defined(_MSC_VER)
    39 #   define PACPUS_DEPRECATED(func) __declspec(deprecated) func
    40 #   define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
     39#   define PACPUS_DEPRECATED(func)              __declspec(deprecated) func
     40#   define PACPUS_DEPRECATED_MSG(func, msg)     __declspec(deprecated("was declared deprecated: " msg)) func
    4141#else
    4242#   pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
    43 #   define PACPUS_DEPRECATED(func) func
    44 #   define PACPUS_DEPRECATED_MSG(func, msg) func
     43#   define PACPUS_DEPRECATED(func)              func
     44#   define PACPUS_DEPRECATED_MSG(func, msg)     func
    4545#endif
    4646
Note: See TracChangeset for help on using the changeset viewer.