Add startswith function and use it instead of CONST_STRNEQ.
[deliverable/binutils-gdb.git] / bfd / libcoff.h
index bb9066f5ec52d358f9bb93f03541475cb70e2b26..f2ce3c5e0ca6c2fc162537af30dc967b8329993d 100644 (file)
@@ -977,7 +977,7 @@ typedef struct
 /* Macro: Returns true if the bfd is a PE executable as opposed to a
    PE object file.  */
 #define bfd_pei_p(abfd) \
-  (CONST_STRNEQ ((abfd)->xvec->name, "pei-"))
+  (startswith ((abfd)->xvec->name, "pei-"))
 #ifdef __cplusplus
 }
 #endif
This page took 0.026748 seconds and 4 git commands to generate.