Show
Ignore:
Timestamp:
07/04/08 06:05:11 (5 months ago)
Author:
flynd
Message:

Marked deprecated functions in messages and utilities.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_utility.h

    r6347 r6418  
    66 
    77class ICQUser; 
     8 
     9// Define for marking functions as deprecated 
     10#ifndef LICQ_DEPRECATED 
     11# if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)) 
     12#  define LICQ_DEPRECATED __attribute__ ((__deprecated__)) 
     13# elif defined(_MSC_VER) && (_MSC_VER >= 1300) 
     14#  define LICQ_DEPRECATED __declspec(deprecated) 
     15# else 
     16#  define LICQ_DEPRECATED 
     17# endif 
     18#endif 
    819 
    920 
     
    6172  EWinType WinType()  { return m_eWinType; } 
    6273 
    63   bool SetFields(unsigned long _nUin); 
    6474  bool SetFields(const char *szId, unsigned long nPPID); 
    6575  void SetUserFields(const std::vector<const char *> &_vszUserFields); 
     
    7181 
    7282  bool Exception()  { return bException; } 
     83 
     84  // Deprecated functions, to be removed 
     85  LICQ_DEPRECATED bool SetFields(unsigned long _nUin); 
    7386 
    7487protected: