if target_os in ['windows', 'msys_nt']:
libocsrm_env.AppendUnique(LIBPATH = [os.path.join(libocsrm_env.get('BUILD_DIR'), 'resource', 'oc_logger')])
- # Enable W4 but disable the following warning:
- # - warning C4232: nonstandard extension used: 'read': address of dllimport 'fread' is not static, identity not guaranteed
- # - fread, frwrite, etc are provided by the platform and cannot be changed.
- libocsrm_env.AppendUnique(CCFLAGS=['/W4', '/WX'])
+ # - warning C4200: nonstandard extension used: zero-sized array in struct/union
+ # - warning C4214: nonstandard extension used: bit field types other than int
+ # - warnings inherited from a header included from libcoap
- libocsrm_env.AppendUnique(CCFLAGS=['/wd4232', '/wd4200', '/wd4214', '/W4', '/WX'])
++ libocsrm_env.AppendUnique(CCFLAGS=['/wd4200', '/wd4214', '/W4', '/WX'])
if target_os in ['linux', 'android', 'tizen', 'msys_nt', 'windows'] and libocsrm_env.get('SECURED') == '1':
SConscript('provisioning/SConscript', 'libocsrm_env')
}
}
+ svrLen = strlen(OIC_RSRC_CSR_URI);
+ if (uriLen == svrLen)
+ {
+ if (0 == strncmp(uri, OIC_RSRC_CSR_URI, svrLen))
+ {
+ return OIC_R_CSR_TYPE;
+ }
+ }
+
svrLen = strlen(OIC_RSRC_DOXM_URI);
- if(uriLen == svrLen)
+ if (uriLen == svrLen)
{
- if(0 == strncmp(uri, OIC_RSRC_DOXM_URI, svrLen))
+ if (0 == strncmp(uri, OIC_RSRC_DOXM_URI, svrLen))
{
return OIC_R_DOXM_TYPE;
}
}
}
+ svrLen = strlen(OIC_RSRC_ROLES_URI);
+ if (uriLen == svrLen)
+ {
+ if (0 == strncmp(uri, OIC_RSRC_ROLES_URI, svrLen))
+ {
+ return OIC_R_ROLES_TYPE;
+ }
+ }
+
svrLen = strlen(OIC_RSRC_SVC_URI);
- if(uriLen == svrLen)
+ if (uriLen == svrLen)
{
- if(0 == strncmp(uri, OIC_RSRC_SVC_URI, svrLen))
+ if (0 == strncmp(uri, OIC_RSRC_SVC_URI, svrLen))
{
return OIC_R_SVC_TYPE;
}