mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
5afbd505ef
Summary: Clean up the include guards to be more consistent and unique. Some files used include guards like "KEY_H" and "STORE_H" which were not very unique, and are more likely to collide with definitions provided by header files from other projects. Some of the py-*.h files were missing include guards altogether. This corresponds to Facebook diff D5588670. Test Plan: Confirmed the code still builds and passes tests. Reviewers: #fbhgext, quark Reviewed By: #fbhgext, quark Differential Revision: https://phab.mercurial-scm.org/D508
21 lines
546 B
C
21 lines
546 B
C
// Copyright (c) 2004-present, Facebook, Inc.
|
|
// All Rights Reserved.
|
|
//
|
|
// This software may be used and distributed according to the terms of the
|
|
// GNU General Public License version 2 or any later version.
|
|
|
|
// no-check-code
|
|
|
|
#ifndef FBHGEXT_CLIB_PORTABILITY_INET_H
|
|
#define FBHGEXT_CLIB_PORTABILITY_INET_H
|
|
|
|
#if defined(_MSC_VER)
|
|
#include <winsock2.h>
|
|
#pragma comment(lib, "Ws2_32.lib")
|
|
/* See https://fburl.com/7hd350j8 for more details about Ws2_32.lib */
|
|
#else
|
|
#include <arpa/inet.h>
|
|
#endif
|
|
|
|
#endif /* FBHGEXT_CLIB_PORTABILITY_INET_H */
|