X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcommon%2Farch.h;fp=src%2Fceph%2Fsrc%2Fcommon%2Farch.h;h=09dbe7c90c6d478a07359b4a46567aeea9a0e1c9;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/common/arch.h b/src/ceph/src/common/arch.h new file mode 100644 index 0000000..09dbe7c --- /dev/null +++ b/src/ceph/src/common/arch.h @@ -0,0 +1,15 @@ +#ifndef CEPH_ARCH_H +#define CEPH_ARCH_H + +static const char *get_arch() +{ +#if defined(__i386__) + return "i386"; +#elif defined(__x86_64__) + return "x86-64"; +#else + return "unknown"; +#endif +} + +#endif