]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/pcap.h
Use _declspec(deprecated(msg)) rather than __pragma(deprecated).
[libpcap] / pcap / pcap.h
index 3079f6d7fd3ae36b5eb6e0e3ffb7674992a2b431..9fd14f5e9688e3014b0a782b04db7de74833b356 100644 (file)
@@ -391,8 +391,8 @@ PCAP_API int        pcap_init(unsigned int, char *);
  * should use pcap_findalldevs() and use the first device.
  */
 PCAP_AVAILABLE_0_4
-PCAP_API char  *pcap_lookupdev(char *)
-PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device");
+PCAP_DEPRECATED("use 'pcap_findalldevs' and use the first device")
+PCAP_API char  *pcap_lookupdev(char *);
 
 PCAP_AVAILABLE_0_4
 PCAP_API int   pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *);
@@ -614,6 +614,7 @@ PCAP_API int        pcap_compile(pcap_t *, struct bpf_program *, const char *, int,
            bpf_u_int32);
 
 PCAP_AVAILABLE_0_5
+PCAP_DEPRECATED("use pcap_open_dead(), pcap_compile() and pcap_close()")
 PCAP_API int   pcap_compile_nopcap(int, int, struct bpf_program *,
            const char *, int, bpf_u_int32);
 
@@ -680,8 +681,8 @@ PCAP_API FILE       *pcap_file(pcap_t *);
  * a Windows-only pcap_handle() API that returns the HANDLE.
  */
 PCAP_AVAILABLE_0_4
-PCAP_API int   pcap_fileno(pcap_t *)
-PCAP_DEPRECATED(pcap_fileno, "request a 'pcap_handle' that returns a HANDLE if you need it");
+PCAP_DEPRECATED("request a 'pcap_handle' that returns a HANDLE if you need it")
+PCAP_API int   pcap_fileno(pcap_t *);
 #else /* _WIN32 */
 PCAP_AVAILABLE_0_4
 PCAP_API int   pcap_fileno(pcap_t *);