Add hardware crc impl
[folly.git] / folly / portability / SysStat.h
index e7367778d3ebefeae120740607f671da8f8ea259..89acc45c0f0a66da67fb3df0785e7536ef95dc22 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -35,6 +35,8 @@
 #define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)
 #define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)
 
+#define S_ISDIR(mode) (((mode) & _S_IFDIR) == _S_IFDIR ? 1 : 0)
+
 // This isn't defined anywhere, so give a sane value.
 #define MAXSYMLINKS 255