Moved resattr.cpp to src/bin, made it buildable for Haiku, and fixed a
warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -113,6 +113,7 @@ StdBinCommands
|
|||||||
dstcheck.cpp
|
dstcheck.cpp
|
||||||
hey.cpp
|
hey.cpp
|
||||||
reindex.cpp
|
reindex.cpp
|
||||||
|
resattr.cpp
|
||||||
settype.cpp
|
settype.cpp
|
||||||
spybmessage.cpp
|
spybmessage.cpp
|
||||||
urlwrapper.cpp
|
urlwrapper.cpp
|
||||||
|
|||||||
@@ -98,8 +98,9 @@ write_attributes(BNode &out, const char *inFileName, BResources &resources,
|
|||||||
const void *data = resources.LoadResource(type, id, &size);
|
const void *data = resources.LoadResource(type, id, &size);
|
||||||
if (!data && size > 0) {
|
if (!data && size > 0) {
|
||||||
// should not happen
|
// should not happen
|
||||||
fprintf(stderr, "Failed to get resource `%s', type: %lx, id: %ld "
|
fprintf(stderr, "Failed to get resource `%s', type: %" B_PRIx32
|
||||||
"from input file `%s'\n", name, type, id, inFileName);
|
", id: %" B_PRId32 " from input file `%s'\n", name, type, id,
|
||||||
|
inFileName);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2,6 +2,7 @@ SubDir HAIKU_TOP src tools resattr ;
|
|||||||
|
|
||||||
USES_BE_API on <build>resattr = true ;
|
USES_BE_API on <build>resattr = true ;
|
||||||
|
|
||||||
BuildPlatformMain <build>resattr : resattr.cpp ;
|
BuildPlatformMain <build>resattr : resattr.cpp
|
||||||
LinkAgainst <build>resattr : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) ;
|
: $(HOST_LIBBE) $(HOST_LIBSUPC++) ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles resattr.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
|
||||||
|
|||||||
Reference in New Issue
Block a user