Remove clang extension
[hashcat.git] / include / kernel_vendor.h
index 3c0b513..d2ffb59 100644 (file)
@@ -3,18 +3,20 @@
  * License.....: MIT
  */
 
+#ifdef cl_khr_byte_addressable_store
 #pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
+#endif
 
 /**
  * vendor specific
  */
 
-#if VENDOR_ID == 4096
+#if VENDOR_ID == (1 << 0)
 #define IS_AMD
-#endif
-
-#if VENDOR_ID == 4318
+#elif VENDOR_ID == (1 << 6)
 #define IS_NV
+#else
+#define IS_GENERIC
 #endif
 
 /**
@@ -22,7 +24,7 @@
  */
 
 #ifdef IS_AMD
-#pragma OPENCL EXTENSION cl_amd_media_ops : enable
+#pragma OPENCL EXTENSION cl_amd_media_ops  : enable
 #pragma OPENCL EXTENSION cl_amd_media_ops2 : enable
 #endif
 
 
 #ifdef IS_NV
 #endif
+
+/**
+ * Generic
+ */
+
+#ifdef IS_GENERIC
+#endif